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 bu...@apache.org on 2002/06/03 18:10:54 UTC

DO NOT REPLY [Bug 9580] - Identity Constraint not matched for nested element.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9580>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=9580

Identity Constraint not matched for nested element.





------- Additional Comments From elarson@actuate.com  2002-06-03 16:10 -------
Example xml:
<cars
	xmlns="http://www.bogus.com/car"
	xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.bogus.com/car car.xsd">
	
<group name="aaa">
	<group name="bbb"/>
</group>

<car name="focus" group="aaa"/>
<car name="echo" group="bbb"/>

</cars>

Validating this with xerces results in the error "Key with value [ID Value:  
bbb] not found for identity constraint of element "cars".". But the xpath for 
the selection in the "key" constraint is './/group' and should include the 
value 'bbb'. Trying this with MSXML4.0 does not result in any errors.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org