[UP] The UI language |
The element ui:template This element defines a template. For an overview, see the chapter about Templates. Declaration Level: Control structure <!ELEMENT ui:template ANY> <!ATTLIST ui:template name NMTOKEN #REQUIRED from-caller NMTOKENS #IMPLIED from-context NMTOKENS #IMPLIED xml:lang NMTOKEN #IMPLIED >The subelements of ui:template must match the informal rule ( ui:default*, %page-body;* ) where %page-body; stands symbolically for all allowed sub elements. Note that whitespace between the %page-body; elements counts, but at the other positions it is ignored. Attributes
Sub elements The sub element ui:default has the special task to define the default values for parameters that are used if the parameter has not been passed by the caller (lexical scope), or the parameter cannot be found in the context (dynamic scope). ui:default elements must only occur at the beginning of the template. The other sub elements may be arbitrary page body elements. Internationalization If no xml:lang attribute exists, the template is defined with exactly the name as specified by the name attribute. If there is a xml:lang attribute, the template gets a compound name. The name attribute is the first part, and the xml:lang attribute is the suffix; the parts are separated by a # character. For example, the template <ui:template name="foo" xml:lang="en">...</ui:template>defines the template foo#en. Example See the chapter Templates. |