1 <xs:schema  xmlns:xs='http://www.w3.org/2001/XMLSchema'>
   2 <xs:element name='doc'><xs:complexType><xs:attribute name='value'>
   3   <xs:simpleType>
   4     <xs:restriction base='xs:string'>
   5       <xs:pattern value='a[-]?c'/>
   6     </xs:restriction>
   7   </xs:simpleType>
   8 </xs:attribute></xs:complexType>
   9 </xs:element>
  10 </xs:schema>
  11