Posted By:
Andrew_Rapp
Posted On:
Thursday, May 18, 2006 10:02 AM
I'm trying to use Xerces to do schema validation to restrict characters above the ascii range. I want to restrict non-ascii characters and a few others with a xsd:pattern, but allow everything else. I've tried both and I am interpreting the last expression as allow any character below 0x0080, or more specifically only ascii characters. The above expression result in a InvalidRegex SAXParseException. According to the Pattern class documentation, http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html this is a valid regular expression. I'd rather specify the characters I don't want than have to specify all the allowed characters. Any idea
More>>
I'm trying to use Xerces to do schema validation to restrict characters above the ascii range. I want to restrict non-ascii characters and a few others with a xsd:pattern, but allow everything else.
I've tried both
and
I am interpreting the last expression as allow any character below 0x0080, or more specifically only ascii characters.
The above expression result in a InvalidRegex SAXParseException. According to the Pattern class documentation,
http://java.sun.com/j2se/1.4.2/docs/api/java/util/regex/Pattern.html
this is a valid regular expression. I'd rather specify the characters I don't want than have to specify all the allowed characters. Any ideas? Thanks.