morten 01/05/17 04:07:52
Modified: java/src/org/apache/xalan/xsltc/compiler Template.java
Log:
Changed Template's translate() method so that the current class name is
obtained from the MethodGenerator class and not the parent Stylesheet
class. This because the Stylesheet does not always know the correct name
of the translet class name. This is soemtimes the case with imported or
included stylesheets.
PR: none - bug not registerd in bugzilla
Obtained from: n/a
Submitted by: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
Revision Changes Path
1.4 +3 -2
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Template.java
Index: Template.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Template.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Template.java 2001/05/02 10:25:06 1.3
+++ Template.java 2001/05/17 11:07:47 1.4
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: Template.java,v 1.3 2001/05/02 10:25:06 morten Exp $
+ * @(#)$Id: Template.java,v 1.4 2001/05/17 11:07:47 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -283,8 +283,9 @@
if (_disabled) return;
// bug fix #4433133, add a call to named template from applyTemplates
- String className = _stylesheet.getClassName();
+ String className = classGen.getClassName();
final String DOM_CLASS_SIG = classGen.getDOMClassSig();
+
if (_compiled && isNamed()){
il.append(classGen.loadTranslet());
il.append(methodGen.loadDOM());
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]