morten 01/09/24 01:46:23
Modified: java/src/org/apache/xalan/xsltc/dom DOMImpl.java
NthIterator.java
Log:
The fix for 2954 introduced a regression, so I am pulling out the fix.
PR: n/a
Obtained from: n/a
Submitted by: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
Revision Changes Path
1.30 +5 -4 xml-xalan/java/src/org/apache/xalan/xsltc/dom/DOMImpl.java
Index: DOMImpl.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/DOMImpl.java,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- DOMImpl.java 2001/09/21 11:55:55 1.29
+++ DOMImpl.java 2001/09/24 08:46:22 1.30
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: DOMImpl.java,v 1.29 2001/09/21 11:55:55 morten Exp $
+ * @(#)$Id: DOMImpl.java,v 1.30 2001/09/24 08:46:22 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -1255,10 +1255,11 @@
while (curr >= 0) {
if (curr == 0)
curr = -1;
- else
+ else {
curr = _parent[curr];
- if (_type[curr] == _nodeType)
- last = curr;
+ if (_type[curr] == _nodeType)
+ last = curr;
+ }
}
return(last);
}
1.3 +4 -1 xml-xalan/java/src/org/apache/xalan/xsltc/dom/NthIterator.java
Index: NthIterator.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/dom/NthIterator.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- NthIterator.java 2001/09/21 11:55:55 1.2
+++ NthIterator.java 2001/09/24 08:46:23 1.3
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: NthIterator.java,v 1.2 2001/09/21 11:55:55 morten Exp $
+ * @(#)$Id: NthIterator.java,v 1.3 2001/09/24 08:46:23 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -94,6 +94,7 @@
public NodeIterator setStartNode(final int node) {
_source.setStartNode(node);
+ /*
// Make sure we count backwards if the iterator is reverse
if (_source.isReverse()) {
int last = _source.getLast();
@@ -103,6 +104,8 @@
else {
_position = _n;
}
+ */
+ _position = _n;
_ready = true;
return this;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]