September 2002
Intermediate to advanced
1008 pages
22h 3m
English
Another example of a simple type is the partNumberType in Listing 10.2. The partNumberType contains a pattern that determines the valid values for a part number in a corresponding XML instance. The annotation provides an explanation of the pattern.
<xsd:simpleType name="partNumberType" final="union" id="catalog.partNumber.sType"> <xsd:annotation> <xsd:documentation xml:lang="en"> Declaration of a part number. Each part number consists of one to three alphabetic characters followed by one to eight digits. The following part numbers, for example, are valid: J1 ABC32897 ZZ22233344 </xsd:documentation> </xsd:annotation> <xsd:restriction ... |
Read now
Unlock full access