Mega Code Archive

 
Categories / XML / XML Schema
 

Define the intersection of the block L (all the letters) and the BasicLatin (ASCII characters below #x7F)

<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"   targetNamespace="http://www.rntsoft.com" xmlns="http://www.rntsoft.com"   elementFormDefault="qualified">   <xs:simpleType name="BasicLatinLetters">     <xs:restriction>       <xs:simpleType>         <xs:restriction base="xs:token">           <xs:pattern value="\p{IsBasicLatin}*" />         </xs:restriction>       </xs:simpleType>       <xs:pattern value="\p{L}*" />     </xs:restriction>   </xs:simpleType> </xs:schema>