You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/10/17 15:35:54 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler FilterParentPath.java
morten 01/10/17 06:35:54
Modified: java/src/org/apache/xalan/xsltc/compiler
FilterParentPath.java
Log:
Enabled node ordering for certain filtered parent paths.
PR: bugzilla 4178
Obtained from: n/a
Submitted by: morten@xml.apache.org
Reviewed by: morten@xml.apache.org
Revision Changes Path
1.6 +13 -1 xml-xalan/java/src/org/apache/xalan/xsltc/compiler/FilterParentPath.java
Index: FilterParentPath.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/FilterParentPath.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- FilterParentPath.java 2001/10/05 09:47:55 1.5
+++ FilterParentPath.java 2001/10/17 13:35:54 1.6
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: FilterParentPath.java,v 1.5 2001/10/05 09:47:55 morten Exp $
+ * @(#)$Id: FilterParentPath.java,v 1.6 2001/10/17 13:35:54 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -153,6 +153,18 @@
"includeSelf",
"()"+NODE_ITERATOR_SIG);
il.append(new INVOKEVIRTUAL(incl));
+
+ if (!(getParent() instanceof RelativeLocationPath) &&
+ !(getParent() instanceof FilterParentPath)) {
+ String params = "("+NODE_ITERATOR_SIG+"I)"+NODE_ITERATOR_SIG;
+ final int order = cpg.addInterfaceMethodref(DOM_INTF,
+ "orderNodes",
+ params);
+ il.append(methodGen.loadDOM());
+ il.append(SWAP);
+ il.append(methodGen.loadContextNode());
+ il.append(new INVOKEINTERFACE(order, 3));
+ }
}
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org