morten 01/06/12 03:12:41
Modified: java/src/org/apache/xalan/xsltc/compiler Mode.java
Log:
Fix to make sure that the implicit "text()" pattern is run when templates
containing "text()" in their pattern fail. XSLTC would not previously
invoke the built-in pattern for "text()" if a stylesheet contained a
template such as <xsl:template pattern="foo/bar/text()" .../>
PR: n/a
Obtained from: n/a
Submitted by: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
Revision Changes Path
1.2 +3 -11 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.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Mode.java 2001/04/17 18:51:36 1.1
+++ Mode.java 2001/06/12 10:12:36 1.2
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: Mode.java,v 1.1 2001/04/17 18:51:36 sboag Exp $
+ * @(#)$Id: Mode.java,v 1.2 2001/06/12 10:12:36 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -148,15 +148,7 @@
Hashtable keys) {
if (pattern instanceof IdKeyPattern) {
- /* TODO: Cannot handle this kind of pattern yet!!!
-
- IdKeyPattern idkey = (IdKeyPattern)pattern;
- StepPattern kernel = idkey.getKernelPattern();
- if (kernel == null) {
- Key key = (Key)keys.get(idkey.getIndexName());
- idkey.setKernelPattern(key.getKernelPattern());
- }
- */
+ // TODO: Cannot handle this kind of core pattern yet!!!
}
else if (pattern instanceof AlternativePattern) {
final AlternativePattern alt = (AlternativePattern)pattern;
@@ -639,7 +631,7 @@
// Handle any pattern with match on text nodes - default: output text
targets[DOM.TEXT] = _code2TestSeq[DOM.TEXT] != null
- ? _code2TestSeq[DOM.TEXT].compile(classGen, methodGen, ihLoop)
+ ? _code2TestSeq[DOM.TEXT].compile(classGen, methodGen, ihText)
: ihText;
// This DOM-type is not in use - default: process next node
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]