Attributes
Attributes may play an important role in selecting elements by context. Attributes may also contain values that need to be presented, or used to determine what is presented. In some cases it is necessary to know whether an attribute is required to be present, or is optional, or to determine what possible values the attribute may hold. The ATTRIBUTE declaration defines one or more attributes for a given element. The element name follows the declaration keyword. In the example below, the Para element has four attributes assigned to it, namely an 'ID' attribute, a 'Type' attribute, an 'Author' attribute and a 'Status' attribute:
<!ATTLIST Para ID #REQUIRED Type (Normal|Secret) "Normal" Author #IMPLIED Status "draft">
If the attribute ...
Get XSL companion, The now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.