> [InvalidRegex: Pattern value
> '[0-9][0-9][0-9][0-9][0-9][-][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]'
--------------------------^^^

You should escape '-' as '\-'
See
http://www.w3.org/TR/xmlschema-2/#nt-SingleCharEsc

Best Regards,
George
---------------------------------------------------------------------
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com


Simon Čarni wrote:
Hi all!
When trying to validate XML document against a schema using SAX parser and xercex 2.6.2 jar I get following error: [InvalidRegex: Pattern value '[0-9][0-9][0-9][0-9][0-9][-][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]' is not a valid regular expression: ''-' is an invalid character range. Write '\-'.'.] Running same code using xerces jar shipped with Websphere Studio Application Developer 5.1 work fine. Any idea? Thanks in advance, cheers, Simon

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to