xerces-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Glavassevich <mrgla...@ca.ibm.com>
Subject Re: Regex compatibility
Date Mon, 16 Apr 2007 21:47:15 GMT
Hi,

"dick.deneer@donkeydevelopment.com" <dick.deneer@donkeydevelopment.com> 
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: j-users-unsubscribe@xerces.apache.org
> For additional commands, e-mail: j-users-help@xerces.apache.org

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

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-users-help@xerces.apache.org


Mime
View raw message