pattern facets
Monday, March 29, 2010
2:13 PM
pattern facets
Can also match general data patterns.
 <xs:simpleType name="ssn">
   <xs:restriction base="xs:string">
     <xs:pattern value="\d\d\d-\d\d-\d\d\d\d"/>
   </xs:restriction>
 </xs:simpleType>

matches all social security numbers in the pattern 123-45-6789
Pasted from <[link]> 