Unicode blocks
<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.java2s.com" xmlns="http://www.java2s.com" elementFormDefault="qualified"> <xs:simpleType name="BasicLatinToken"> <xs:restriction base="xs:token"> <xs:pattern value="\p{IsBasicLatin}*" /> </xs:restriction> </xs:simpleType> <xs:simpleType name="Latin-1Token"> <xs:restriction base="xs:token"> <xs:pattern value="[\p{IsBasicLatin}\p{IsLatin-1Supplement}]*" /> </xs:restriction> </xs:simpleType> </xs:schema>