Hi,

"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 
wrote on 04/16/2007 01:48:16 PM:

> Not long ago I had a problem  using a regex pattern.
> I wanted to allow all values, excluding a list of "reserved words".
> Finally I found a regex pattern, that did what I wanted. I tested it 
> in a small java program and everthing looked well.
> But when I used the pattern in the XSD, it was found invalid. I  read 
> in the XML schema specifications that they recommend support of level 
> 1 regex patterns.
> In my case, I am always using the same program to check the xml 
> against the XSD. Is there a way to force xerces using the standard 
> java regex library without restrictions?

Xerces' schema processor supports the regex grammar defined by the schema 
specification [1]. It's hard-wired to use its own thread safe built-in 
library for this purpose. You can't change the behaviour.

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

[1] http://www.w3.org/TR/xmlschema-2/#regexs

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

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

  • Regex compatibility dick.den...@donkeydevelopment.com
    • Re: Regex compatibility Michael Glavassevich

Reply via email to