W3C home > Mailing lists > Public > xmlschema-dev@w3.org > April 2001

Re: Help on Regular expression in XML schema

From: Martin Duerst <duerst@w3.org>
Date: Thu, 19 Apr 2001 10:17:14 +0900
Message-Id: <4.2.0.58.J.20010419101553.033e5b70@sh.w3.mag.keio.ac.jp>
To: Vidyanand Murunikkara <vidyanand.murunikkara@infravio.com>, xmlschema-dev@w3.org
Cc: xmlschema-dev@w3.org
This pattern uses XML-specific character restrictions on names,
which I guess you won't find in a general-purpose java library.
But you can probably put something together from the name checking
code in an XML parser and a general java regexp library.

Regards,   Martin.

At 18:05 01/04/18 -0700, Vidyanand Murunikkara wrote:
>I am looking for a regular expression library for java which satisfies all the
>conditions as set in XML schema --> datatypes--> appendix F regular 
>expression .
>it would be very helpful if someone could direct me to a good regex library.
>
>I have tried a lot of the libraries including gnu and apache .. but all of 
>them
>doesn't seem to support them especially when it comes to validating a 
>pattern like
>the one that is specified  in the NCName .. ( shown below )
>
><xs:pattern value="[\i-[:]][\c-[:]]*" id="NCName.pattern">
>         <xs:annotation>
>           <xs:documentation
>                 source="http://www.w3.org/TR/REC-xml-names/#NT-NCName">
>             pattern matches production 4 from the Namespaces in XML spec
>           </xs:documentation>
>         </xs:annotation>
>       </xs:pattern>
>
>
>thank you
>Vidyanand.
Received on Wednesday, 18 April 2001 21:17:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:20 GMT