c-dev@xerces.apache.org
[Top] [All Lists]

[jira] Commented: (XERCESC-1512) Bad XS:pattern interpretation for XSD

Subject: [jira] Commented: (XERCESC-1512) Bad XS:pattern interpretation for XSD
From: "Tony Wang (JIRA)"
Date: Tue, 6 Feb 2007 19:18:06 -0800 PST
    [ 
https://issues.apache.org/jira/browse/XERCESC-1512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470798
 ] 

Tony Wang commented on XERCESC-1512:
------------------------------------

I am experiencing the same issue when using Xerces 2.7 in our product, could 
anybody tell me which files are modified for this fix ( It is too slow for me 
to view change history of SubVersion from China)? I need to patch the 2.7 
release code manually.

Thanks,
Tony

> Bad XS:pattern interpretation for XSD
> -------------------------------------
>
>                 Key: XERCESC-1512
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1512
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>    Affects Versions: 2.6.0
>         Environment: Windows 2000 SP4, VC 6 SP4 used to compiled the xerces 
> libraries (C++ & Perl).
> I call the Xerces library from perl with the XML::Xerces - perl glue library
>            Reporter: Olivier Quintens
>         Assigned To: Alberto Massari
>         Attachments: grammar-core.xsd, vxml-datatypes.xsd, xml.xsd
>
>
> Hi,
> The code validates xml messages against a enterprise standard XSD.
> The following structure defines the tag validation
> <xs:element name="ENTRY_TIME_STAMP" type="typeDateSeconds" minOccurs="0"/>
> .....
> <xs:simpleType name="typeDateSeconds">
>       <xs:restriction base="xs:string">
>              <xs:pattern value="[0-9]{14}|[0-9]{16}"/>
>       </xs:restriction>
> </xs:simpleType>
> When the tag ENTRY_TIME_STAMP contains a value which match the first part 
> ([0-9]{14}), the xml is considered as valid.
> e.g : <ENTRY_TIME_STAMP>20051006082856</ENTRY_TIME_STAMP>
> When the tag ENTRY_TIME_STAMP contains a value which match the first part 
> ([0-9]{16}), the validator parser failed
> e.g : <ENTRY_TIME_STAMP>2005100608285631</ENTRY_TIME_STAMP> 
> Threturn error is  like 
> Reason :
> ERROR:
> FILE:    FAKE_SYSTEM_ID
> LINE:    1
> COLUMN:  211
> MESSAGE: Datatype error: Type:InvalidDatatypeValueException, Message:Value 
> '2005100608285631' does not match regular expression facet 
> '([0-9]{14}|[0-9]{16})'.
> Cheers
> Olivier

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xxxxxxxxxxxxxxxxx
For additional commands, e-mail: c-dev-help@xxxxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>