September 2002
Intermediate to advanced
1008 pages
22h 3m
English
The anyAttribute element provides a mechanism to loosely specify attributes. The anyAttribute element is analogous to the any element, which provides a similar mechanism for loosely specifying elements. Listing 9.3 demonstrates a simple complete schema for specifying attributes a1 through a6. The element type eStrictAnyNS specifies that a corresponding XML instance may reference any global attribute specified in the http://www.XMLSchemaReference.com/examples namespace. The entire schema is included in Listing 9.3 because the namespaces are an integral part of the attribute wildcard.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.XMLSchemaReference.com/examples/Ch09/anyAttributeDemo" ... |
Read now
Unlock full access