You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Mukul Gandhi (JIRA)" <xe...@xml.apache.org> on 2014/08/07 17:24:11 UTC
[jira] [Resolved] (XERCESJ-1640) Regex in asserts fails to
validate.
[ https://issues.apache.org/jira/browse/XERCESJ-1640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mukul Gandhi resolved XERCESJ-1640.
-----------------------------------
Resolution: Fixed
committed fix with jira version 1616506
> Regex in asserts fails to validate.
> -----------------------------------
>
> Key: XERCESJ-1640
> URL: https://issues.apache.org/jira/browse/XERCESJ-1640
> Project: Xerces2-J
> Issue Type: Bug
> Components: JAXP (javax.xml.validation), XML Schema 1.1 Datatypes, XML Schema 1.1 Structures
> Affects Versions: 2.11.0
> Environment: Ubuntu 14.04
> Reporter: Timothy Cook
> Assignee: Mukul Gandhi
> Labels: assertion, validation
>
> I am quite certain this worked in a previous version.
> cvc-assertion: Assertion evaluation ('matches(DvString-dv, '[0-9]{3}-[0-9]{3}-[0-9]{4}')') for element 'ccd:el-06bf2593-dd8a-4681-a6e5-0470134e632b' on schema type 'ct-06bf2593-dd8a-4681-a6e5-0470134e632b' did not succeed.
> Severity
> Error
> The above assert doesn't validate this string:
> <DvString-dv>111-111-1111</DvString-dv>
> SaxonEE does validate it. These are both the shipped validators with oXygen 16.0
> Interestingly this assert:
> <xs:assert test="matches(DvString-dv, '^\d{5}([\-]?\d{3})$')"/>
> does validate this string:
> <DvString-dv>99999-000</DvString-dv>
> There are other examples of these asserts here:
> https://github.com/mlhim/tb
>
>
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org