1 <?xml version="1.0"?>
   2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   3 
   4 <!--
   5 base='string', pattern='\d', value='#x1040;', type='valid', RULE='37'
   6 -->
   7 
   8 <xsd:element name="doc">
   9     <xsd:complexType>
  10             <xsd:choice>
  11                 <xsd:element name="value" type="Regex" minOccurs="1" maxOccurs="unbounded"/>
  12             </xsd:choice>
  13     </xsd:complexType>
  14 </xsd:element>
  15 
  16 <xsd:simpleType name="Regex">
  17        <xsd:restriction base="xsd:string">
  18            <xsd:pattern value="\d"/>
  19        </xsd:restriction>
  20 </xsd:simpleType>
  21 
  22 
  23 
  24 </xsd:schema>
  25