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/08/07 14:43:04 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler AbsolutePathPattern.java
morten 01/08/07 05:43:04
Modified: java/src/org/apache/xalan/xsltc/compiler
AbsolutePathPattern.java
Log:
Fix for a certain combination of absolute path patterns and ancestor patterns,
such as <xsl:template match="/foo//*"/>.
PR: bugzilla 2836
Obtained from: n/a
Submitted by: morten@xml.apache.org
Reviewed by: morten@xml.apache.org
Revision Changes Path
1.2 +5 -1 xml-xalan/java/src/org/apache/xalan/xsltc/compiler/AbsolutePathPattern.java
Index: AbsolutePathPattern.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/AbsolutePathPattern.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AbsolutePathPattern.java 2001/04/17 18:51:17 1.1
+++ AbsolutePathPattern.java 2001/08/07 12:43:03 1.2
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: AbsolutePathPattern.java,v 1.1 2001/04/17 18:51:17 sboag Exp $
+ * @(#)$Id: AbsolutePathPattern.java,v 1.2 2001/08/07 12:43:03 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -132,6 +132,10 @@
il.append(new INVOKEVIRTUAL(cpg.addMethodref(DOM_CLASS,
GET_PARENT,
GET_PARENT_SIG)));
+ if (_left instanceof AncestorPattern) {
+ il.append(methodGen.loadDOM());
+ il.append(SWAP);
+ }
il.append(new INVOKEVIRTUAL(cpg.addMethodref(DOM_CLASS,
"getType", "(I)I")));
il.append(new PUSH(cpg, DOM.ROOT));
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org