OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Re: [relax-ng] Re: RELAX NG resources update

> I haven't studied about this new library thoroughly, but I believe there
> are differences between the syntax of XML Schema regex and
> java.util.regex.

There are a lot of differences, many of them quite subtle.  The most
fundamental difference is that java.util.regex deals with sequences of
16-bit code points, whereas XML Schema regex deals with characters.  Another
important difference is that JDK 1.4 is based on Unicode 3.0 whereas XML
Schema regexes requires support for at least Unicode 3.1, which added a lot
of new characters outside the BMP.

So, for example, something as simple as \p{L} in XML Schema would be
equivalent to:


in the Java regex language.

All in all, doing the translation is probably about 50% of the work of a
complete regex implementation.

Anyway, I've written code to do the translation and it will be in the next
version of Jing.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC