You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@locus.apache.org on 2000/08/23 17:58:53 UTC
cvs commit: xml-xalan/java/src/org/apache/xpath/axes AxesWalker.java
mmidy 00/08/23 08:58:50
Modified: java/src/org/apache/xpath/axes AxesWalker.java
Log:
Need to handle nodes from different documents differently
Revision Changes Path
1.4 +4 -0 xml-xalan/java/src/org/apache/xpath/axes/AxesWalker.java
Index: AxesWalker.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xpath/axes/AxesWalker.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- AxesWalker.java 2000/08/07 02:49:53 1.3
+++ AxesWalker.java 2000/08/23 15:58:49 1.4
@@ -1291,7 +1291,11 @@
} // while(null != walker)
}
+ // Not sure what is going on here, but we were loosing
+ // the next node in the nodeset because it's coming from a
+ // different document.
while((null != nextNode) && (null != m_prevReturned)
+ && nextNode.getOwnerDocument() == m_prevReturned.getOwnerDocument()
&& m_lpi.getDOMHelper().isNodeAfter(nextNode, m_prevReturned));
m_prevReturned = nextNode;