In this Chapter
Similar in format to XML, Yahoo! Markup Language (YML) provides functionality to Open Applications in a safe and standardized fashion. You include YML tags in the HTML code of an Open Application. At runtime, YAP processes YML tags and converts them into HTML. If necessary, JavaScript libraries on the endpoints attach dynamic behaviors in the user's browser.
YML offers the following benefits:
YML tags must conform to the following rules:
yml:. However,
since YML documents are not actually XML, no formal namespace
declaration is required.
" character reference.
/> .
Some YML tags (including yml:a, yml:form, yml:include, and yml:message) have an attribute called
params. The value of this attribute must conform to
RFC 3986. Avoid common mistakes such as unescaped spaces, entities
(e.g. &), and reverse encoding
(percent-encoding of reserved characters used as delimiters or failure
to percent-encode reserved characters used as data). Nonconforming
syntax can cause runtime errors.
Unless otherwise documented, the params attribute
specifies a path relative to your application's full-view URL, subject to
the following rules:
params is "?", the value of
params is simply appended to the URL.
params begins with any
character other than "?", the URL is truncated to the last slash;
then the value of params is appended.
The following examples illustrate how relative paths are
constructed from params and the application
URL.
| Full-View URL | Specified Parameters | Result |
|---|---|---|
| http://example.com/my-full-view | params="?x=1" | http://example.com/my-full-view?x=1 |
| http://example.com/my-full-view | params="fetch-abc?x=1" | http://example.com/fetch-abc?x=1 |
| http://example.com/my-full-view/ | params="fetch-abc?x=1" | http://example.com/my-full-view/fetch-abc?x=1 |
YML Lite is a subset of YML designed for improved performance. The Small View of an Open Application can contain only HTML or YML Lite tags, which are: