Attribute declarations

Attributes are declared separately from the element, in an attribute list declaration. All the attributes associated with a particular element are usually declared together, in a single attribute list declaration. An attribute declaration is identified by the keyword 'ATTLIST'. The name of the element that will contain the declared attributes appears first:

<!ATTLIST  chapter ... .....
                   ... .....>

When there is more than one declaration for a particular element, the individual attribute definitions are combined. However, the first declaration takes precedence when the same attribute is redefined in declarations that are encountered later. Note that this allows an attribute declaration in the internal subset to override ...

Get XML Companion, The, Third Edition 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.