September 2002
Intermediate to advanced
1008 pages
22h 3m
English
Constraining an attribute is similar to constraining an element. Compared to element types, attribute types are severely limited: An attribute type may only specify simple types.
An element may have zero or more attributes. The following example is a tokenElement element with a single tokenAttribute attribute:
<tokenElement tokenAttribute="aValue">eValue</tokenElement>
The XML representation of the tokenAttribute attribute type looks very much like the XML representation of an element type:
<xsd:attribute name="tokenAttribute" type="xsd:token"/>
The structure type of an element type or a complex type may specify a reference to a global attribute type or a complete local attribute ...
Read now
Unlock full access