From: <wol...@us...> - 2006-05-28 09:57:12
|
Revision: 3620 Author: wolfgang_m Date: 2006-05-28 02:56:56 -0700 (Sun, 28 May 2006) ViewCVS: http://svn.sourceforge.net/exist/?rev=3620&view=rev Log Message: ----------- DLN: Fixed ExtArrayNodeSet.selectParentChild: returned empty sequence for /rootNode. Modified Paths: -------------- branches/DLN/eXist-1.0/src/org/exist/dom/ExtArrayNodeSet.java Modified: branches/DLN/eXist-1.0/src/org/exist/dom/ExtArrayNodeSet.java =================================================================== --- branches/DLN/eXist-1.0/src/org/exist/dom/ExtArrayNodeSet.java 2006-05-27 21:32:55 UTC (rev 3619) +++ branches/DLN/eXist-1.0/src/org/exist/dom/ExtArrayNodeSet.java 2006-05-28 09:56:56 UTC (rev 3620) @@ -590,9 +590,9 @@ // same document NodeId pa = na.getNodeId(); NodeId pb = nb.getNodeId(); - - if (pb.isDescendantOf(pa)) { - if (pb.isChildOf(pa)) { + int relation = pb.computeRelation(pa); + if (relation != -1) { + if (relation == NodeId.IS_CHILD) { if(mode == NodeSet.DESCENDANT) { if (Expression.NO_CONTEXT_ID != contextId) nb.addContextNode(contextId, na); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |