morten 01/10/15 03:05:57
Modified: java/src/org/apache/xalan/xsltc/compiler Mode.java
Log:
Fix for the last fix.
PR: bugzilla 4050
Obtained from: n/a
Submitted by: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
Revision Changes Path
1.8 +4 -2
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Mode.java
Index: Mode.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Mode.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- Mode.java 2001/10/15 10:02:46 1.7
+++ Mode.java 2001/10/15 10:05:57 1.8
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: Mode.java,v 1.7 2001/10/15 10:02:46 morten Exp $
+ * @(#)$Id: Mode.java,v 1.8 2001/10/15 10:05:57 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -722,7 +722,8 @@
targets[DOM.ATTRIBUTE] = attrNamespaceHandle;
// Match on processing instruction - default: process next node
- InstructionHandle ihPI = ihElem;
+ InstructionHandle ihPI = ihLoop;
+ if (_nodeTestSeq != null) ihPI = ihElem;
if (_testSeq[DOM.PROCESSING_INSTRUCTION] != null)
targets[DOM.PROCESSING_INSTRUCTION] =
_testSeq[DOM.PROCESSING_INSTRUCTION].
@@ -731,7 +732,8 @@
targets[DOM.PROCESSING_INSTRUCTION] = ihPI;
// Match on comments - default: process next node
- InstructionHandle ihComment = ihElem;
+ InstructionHandle ihComment = ihLoop;
+ if (_nodeTestSeq != null) ihComment = ihElem;
targets[DOM.COMMENT] = _testSeq[DOM.COMMENT] != null
? _testSeq[DOM.COMMENT].compile(classGen, methodGen, ihComment)
: ihComment;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]