mmidy 01/07/10 10:14:26
Modified: java/src/org/apache/xpath/axes DescendantIterator.java
Log:
Fix problem with descendant-or-self and from root pattern. When from root,
descedant or self was not recognized.
Revision Changes Path
1.10 +3 -2
xml-xalan/java/src/org/apache/xpath/axes/DescendantIterator.java
Index: DescendantIterator.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xpath/axes/DescendantIterator.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- DescendantIterator.java 2001/06/12 19:16:16 1.9
+++ DescendantIterator.java 2001/07/10 17:14:20 1.10
@@ -106,9 +106,10 @@
}
else if(OpCodes.FROM_ROOT == stepType)
{
- // %TBD% orSelf and fromRoot should be considered seperately.
fromRoot = true;
- // orSelf = true;
+ // Ugly code... will go away when AST work is done.
+ if(ops[firstStepPos+4] == OpCodes.FROM_DESCENDANTS_OR_SELF)
+ orSelf = true;
firstStepPos += 8;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]