[ 
https://issues.apache.org/jira/browse/XERCESC-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alberto Massari resolved XERCESC-1787.
--------------------------------------

    Resolution: Fixed
      Assignee: Alberto Massari

The scanner was stopping at the ':' symbol, returning 'false'. The parser was 
ignoring the status and processed the available tokens, i.e. assuming the query 
was just "*"

> Wildcard namespace prefixes in XPath are not reported as errors
> ---------------------------------------------------------------
>
>                 Key: XERCESC-1787
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1787
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: Validating Parser (XML Schema)
>    Affects Versions: 2.8.0, 3.0.0
>            Reporter: John Snelson
>            Assignee: Alberto Massari
>             Fix For: 3.0.0, 2.9.0
>
>         Attachments: foo.xml, foo.xsd
>
>
> Both XPath and XML Schema forbid the use of * to designate a wildcard 
> namespace:
> http://www.w3.org/TR/xmlschema-1/#NameTest
> Xerces-C seems to accept unique constraints that include wildcard namespaces. 
> Below are three scenarios using wildcard namespaces, and their outcome with 
> the attached XML and XSD files.
> 1)
>     <xs:unique name="vinUnique">
>       <xs:selector xpath="*:car"/>
>       <xs:field xpath="@vin"/>
>     </xs:unique>
> Xerces-C 2.8: Valid
> Xerces-C 3.0: Valid
> 2)
>     <xs:unique name="vinUnique">
>       <xs:selector xpath="*:car/@vin"/>
>       <xs:field xpath="."/>
>     </xs:unique>
> Xerces-C 2.8: "Duplicate unique value declared"
> Xerces-C 3.0: Valid
> 3)
>     <xs:unique name="vinUnique">
>       <xs:selector xpath="."/>
>       <xs:field xpath="*:car/@vin"/>
>     </xs:unique>
> Xerces-C 2.8: "Field matches more than one value within the scope of its 
> selector" and "Duplicate unique value declared"
> Xerces-C 3.0: Valid 
> It seems that Xerces-C should report an error if it encounters a wildcard 
> namespace, instead of accepting it and evaluating it with varying degrees of 
> success.

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to