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/08/25 19:21:46 UTC
DO NOT REPLY [Bug 12025] New: -
Keys on recursive elements
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=12025>.
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=12025
Keys on recursive elements
Summary: Keys on recursive elements
Product: Xerces2-J
Version: 2.0.2
Platform: Sun
OS/Version: Solaris
Status: NEW
Severity: Major
Priority: Other
Component: DOM
AssignedTo: xerces-j-dev@xml.apache.org
ReportedBy: nikhild@seas.upenn.edu
Id sent a bug report in earlier about the keyrefs not being resolved....but
the problem seems to be with the keys and not the refs.
I have a tree element in which the label and subscript of each node
uniquely identify it.
I defined the key on the tree with the selector xpath=".//node". However
this selects only the root node. It works fine for non-recursive elements
selecting all the descendants but not when a node itself contains a node.
For example the following should give an error since there are two nodes
with label "S" and subscript "r" .... but it doesnt.
<tree>
<node label="S" subscript="r" marker="" >
<node label="NP" subscript="0" marker="substp" >
</node>
<node label="VP" subscript="" marker="" >
<node label="V" subscript=""
marker="headp" >
</node>
<node label="S" subscript="r" marker="" >
<node label="?3" subscript=""
marker="" >
</node>
</node>
<node label="?1" subscript="" marker="" >
</node>
</node>
</node>
</tree>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org