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/12/10 14:55:59 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler Stylesheet.java
morten 01/12/10 05:55:59
Modified: java/src/org/apache/xalan/xsltc/compiler Stylesheet.java
Log:
Added a fix for global variables declared in included/imported stylesheets.
PR: bugzilla 5327
Obtained from: n/a
Submitted by: morten@xml.apache.org
Reviewed by: morten@xml.apache.org
Revision Changes Path
1.34 +6 -1 xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Stylesheet.java
Index: Stylesheet.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Stylesheet.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- Stylesheet.java 2001/11/30 09:32:30 1.33
+++ Stylesheet.java 2001/12/10 13:55:59 1.34
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: Stylesheet.java,v 1.33 2001/11/30 09:32:30 morten Exp $
+ * @(#)$Id: Stylesheet.java,v 1.34 2001/12/10 13:55:59 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -448,6 +448,11 @@
* Type check all the children of this node.
*/
public Type typeCheck(SymbolTable stable) throws TypeCheckError {
+ final int count = _globals.size();
+ for (int i = 0; i < count; i++) {
+ final VariableBase var = (VariableBase)_globals.elementAt(i);
+ var.typeCheck(stable);
+ }
return typeCheckContents(stable);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org