Name
Attribute List Declaration
Synopsis
<!ATTLISTelement_name[attribute_name attribute_type default_decl]*>
In a valid XML document, it is necessary to declare the attribute names, types, and default values that are used with each element type.
The attribute name must obey the rules for XML names, and no duplicate attribute names may exist within a single declaration.
Attributes are declared as having a specific type. Depending on the declared type, a validating XML parser will constrain the values that appear in instances of those attributes within a document. The following table lists the various attribute types and their meanings:
Attribute type | Meaning |
| Simple character data. |
| A unique |
IDREF, IDREFS | A single reference to an element |
ENTITY, ENTITIES | A single reference to a declared unparsed
external entity ( |
NMTOKEN, NMTOKENS | A single name token value ( |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access