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 "Scott Cantor (JIRA)" <xe...@xml.apache.org> on 2011/07/22 02:13:58 UTC
[jira] [Created] (XERCESC-1970) Lax validation skips "known" child
elements but partially processes IDs
Lax validation skips "known" child elements but partially processes IDs
-----------------------------------------------------------------------
Key: XERCESC-1970
URL: https://issues.apache.org/jira/browse/XERCESC-1970
Project: Xerces-C++
Issue Type: Bug
Components: Validating Parser (XML Schema)
Affects Versions: 3.1.1
Reporter: Scott Cantor
When schema wildcards have lax validation, Xerces apparently skips unknown children, as it should, but fails to validate known/recognized children nested further in the tree, which I'm led to believe is not compliant.
What's more concerning is that in ignoring such children, the parser *still* recognizes attributes of type "ID" and places them into the ID map for the document, but does NOT detect or report validation errors if those ID values collide with others in the document. Either handle them as an ID or not, but don't do it halfway.
An example like so:
<Known ID="foo">
<Extensions>
<Unknown>
<Known ID="foo">
If Extensions is lax, the spec apparently requires that the nested <Known> element also be validated, but not only does Xerces not do this, it fails to detect the duplicate ID, BUT inserts both ID attributes into the map that getElementById uses.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org