how to use Unicode character classes and to validate
Posted: Wed Sep 03, 2008 10:23 pm
Hello Oxygen XML users
I am trying to use unicode character classes in an XMLschema as follows :
for english characters : this works and validates
<xs:simpleType name="enChars_v0.3">
<xs:restriction base="xs:normalizedString">
<xs:pattern value='[\p{IsBasicLatin}]+'/>
</xs:restriction>
</xs:simpleType>
for german characters : this does not work and validate
<xs:simpleType name="deChars_v0.3">
<xs:restriction base="xs:normalizedString">
<xs:pattern value="[\p{IsBasicLatin}\p{InLatin-1_Supplement}]+"/>
</xs:restriction>
</xs:simpleType>
Description: InvalidRegex: Pattern value '[\p{IsBasicLatin}\p{InLatin-1_Supplement}]+' is not a valid regular expression. The reported error was: 'Unknown property.'.
What I am doing wromg here ? I am using the Academic Version of Oxygen XML .
I thank in advance for your help .
Best regards
Peter
I am trying to use unicode character classes in an XMLschema as follows :
for english characters : this works and validates
<xs:simpleType name="enChars_v0.3">
<xs:restriction base="xs:normalizedString">
<xs:pattern value='[\p{IsBasicLatin}]+'/>
</xs:restriction>
</xs:simpleType>
for german characters : this does not work and validate
<xs:simpleType name="deChars_v0.3">
<xs:restriction base="xs:normalizedString">
<xs:pattern value="[\p{IsBasicLatin}\p{InLatin-1_Supplement}]+"/>
</xs:restriction>
</xs:simpleType>
Description: InvalidRegex: Pattern value '[\p{IsBasicLatin}\p{InLatin-1_Supplement}]+' is not a valid regular expression. The reported error was: 'Unknown property.'.
What I am doing wromg here ? I am using the Academic Version of Oxygen XML .
I thank in advance for your help .
Best regards
Peter