xerces-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jhh <...@alcatel-lucent.com>
Subject Regular expression validation problems when migrating from 2.6 to 2.7
Date Tue, 09 Jan 2007 19:15:41 GMT
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