You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "John Snelson (JIRA)" <xe...@xml.apache.org> on 2008/03/07 13:05:47 UTC
[jira] Created: (XERCESC-1787) Wildcard namespace prefixes in XPath
are not reported as errors
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
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
[jira] Updated: (XERCESC-1787) Wildcard namespace prefixes in XPath
are not reported as errors
Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESC-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alberto Massari updated XERCESC-1787:
-------------------------------------
Attachment: foo.xsd
> 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
> 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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
[jira] Updated: (XERCESC-1787) Wildcard namespace prefixes in XPath
are not reported as errors
Posted by "John Snelson (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESC-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Snelson updated XERCESC-1787:
----------------------------------
Attachment: foo.xsd
XML Schema file
> 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
> 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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
[jira] Updated: (XERCESC-1787) Wildcard namespace prefixes in XPath
are not reported as errors
Posted by "John Snelson (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESC-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
John Snelson updated XERCESC-1787:
----------------------------------
Attachment: foo.xml
XML instance document
> 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
> 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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
[jira] Resolved: (XERCESC-1787) Wildcard namespace prefixes in
XPath are not reported as errors
Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
[ 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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org
[jira] Updated: (XERCESC-1787) Wildcard namespace prefixes in XPath
are not reported as errors
Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
[ https://issues.apache.org/jira/browse/XERCESC-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alberto Massari updated XERCESC-1787:
-------------------------------------
Attachment: (was: foo.xsd)
> 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
> 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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org