Attributes
Element declarations bind a complex or simple type to an element name in a context. Attribute declarations bind a simple type to an attribute name in a context. Like element declarations, attribute declarations can be global or local, and the mechanisms and issues relating to this choice are the same, but there are even fewer reasons to use global attribute declarations than there are for using global element declarations.
In addition to describing the content model used for an element's [children], a complex type definition describes the members of the [attributes] property as well. A complex type's attribute inventory is described immediately after the content model particles. Attribute inventory is described using local attribute ...
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