This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Having the following XML document: <doc> <elm1 alias="SameAlias" /> <elm2 alias="SameAlias" /> </doc> and the following XSD (fragment) document: <element name="doc"> <unique name="alias"> <selector xpath="elm1|elm2" /> <field xpath="@alias" /> </unique> </element> the validation is succesfull... It appears that the xpath union expression is ignored and only the first union member (i.e., elm1) is utilized.
Actually IDE delegates parsing logic to external parser. The external parser is located using JAXP API. You can at any time change parser implementation. Try to plug in latest Xerces2 impl from xml.apache.org. I can recall that Xerces2 implementation that we bundle by default intentionaly ignores some contraints set by XMLSchema for performance reasons <http://xml.apache.org/xerces2-j/features.html>. I'm going switch it on and let you know (but it's Xerces specifics).
The schema-full-checking feature does not influence XML document checking. I duplicated the bug into Apaches' bugzilla <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18372>.
Petr, I'll will attach a full test case for this. Adrian.
Created attachment 9695 [details] The target XML file
Created attachment 9696 [details] The XSD schema file
Perhaps this got fixed in 5.5 Ent Pack when we introduced a new set of tools to work with schemas.