This document presents each of the attributes used in templates to annotate the structure of the XML documents being presented.
Attribute | Purpose | Parameter Formats | Suitable HTML Elements | Related Attributes | Implementing Attributes |
---|---|---|---|---|---|
template:element | Marks a section corresponding to an element. Many element names can be given to provide a path into the document. | element-name | Almost any | ||
element-name1, element-name2, ... | |||||
template:attribute | Marks a section corresponding to an attribute. | attribute-name | Almost any | ||
template:attribute-field | Lets a template element support the editing of an attribute by providing name and value attributes on that template element. | attribute-name | input (with type "text" or "hidden") | template:attribute | |
template:attribute-area | Lets a template element support the editing of an attribute by providing a name attribute on that template element, and by either inserting the value of the attribute inside the template element, or by replacing the template element with the value. | attribute-name | textarea | template:attribute template:value template:effect | |
attribute-name, "insert" | "replace" | |||||
template:attribute-button | Provides support for a template element to reflect the presence of an attribute on a single element (having a particular value). | attribute-name, attribute-value, template-attribute | input (with type "checkbox" or "radio") | template:attribute template:expr template:expr-attr | |
template:attribute-list-button | Provides support for a template element to reflect the presence of an attribute value on one of a collection of elements. | attribute-name, template-attribute | input (with type "checkbox" or "radio") | template:multiple-choice-list-element | template:attribute template:expr template:expr-attr |
template:selector-field | selector-name | input (with type "submit", "checkbox" or "radio") | template:element | ||
selector-name, affected-element-name | |||||
template:multiple-choice-field | element-name | "-", attribute-name | select | template:multiple-choice-value | template:element template:attribute | |
element-name | "-", attribute-name, "new" | |||||
template:multiple-choice-list-field | element-name | "-", list-element-name, list-attribute-name | select | template:multiple-choice-list-value | template:element | |
template:multiple-choice-list-element | element-name | "-", list-element-name, list-attribute-name | Almost any | template:attribute-list-button | template:element | |
template:multiple-choice-value | element-name, attribute-name, template-attribute | option | template:multiple-choice-field | template:element template:expr template:expr-attr template:value | |
template:multiple-choice-list-value | element-name, attribute-name, template-attribute | option | template:multiple-choice-list-field | template:element template:expr template:expr-attr template:value |