xerces-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alberto Massari <amass...@datadirect.com>
Subject Re: Regular expression validation problems when migrating from 2.6 to 2.7
Date Tue, 09 Jan 2007 19:31:34 GMT
Hi Jorge,
this should be fixed by this commit: 
http://svn.apache.org/viewvc?view=rev&revision=369417

Alberto

At 13.15 09/01/2007 -0600, jhh wrote:
>Hello,
>
>I have just migrated from xerces 2.6 to xerces 2.7.  I encountered
>problems in 2.7 handling regular exceptions defined in an .xsd file,
>with the following definition:
>
>         <xsd:simpleType name="String20to1000by5">
>                 <xsd:restriction base="xsd:string">
>                         <xsd:minLength value="2"/>
>                         <xsd:maxLength value="4"/>
>                         <xsd:pattern 
> value="(([2-9][05])|([1-9][0-9][05])|1000)"/>
>                 </xsd:restriction>
>         </xsd:simpleType>
>
>When validating an XML instance document against the schema, I get
>SAXParseExceptions when performing the validation (for example for
>a value of 1000) that match the schema definition for the element.
>This used to work with the 2.6 version.
>
>Does anyone have any feedback on why I could be hitting these errors?
>
>Thanks!
>
>Jorge


Mime
View raw message