|
|
|---|
<xsd:element name="age">
<xsd:simpleType base="xsd:positive-integer">
<xsd:maxExclusive value="150">
</xsd:simpleType>
</xsd:element>
<xsd:simpleType name="sortcode" base="xsd:string">
<xsd:pattern value="\d{2}-\d{2}-\d{2}">
</xsd:simpleType>
<xsd:simpleType name="gridref" base="xsd:string">
<xsd:pattern value="[A-Z]{2}[0-9]{4}">
</xsd:simpleType>
The pattern specification seems to have changed at some stage in the drafting process. The examples given in Learning XML don't work with Daniel Potter's tutorial applet. Treat all tutorials with care and refer back to the formal specification!
|
|
|