mkwan       2003/07/25 13:41:26

  Modified:    java/src/org/apache/xalan/xsltc/compiler Stylesheet.java
  Log:
  Fix for bugzilla 21805.
  
  Revision  Changes    Path
  1.51      +4 -3      
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.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- Stylesheet.java   8 Jul 2003 20:32:51 -0000       1.50
  +++ Stylesheet.java   25 Jul 2003 20:41:25 -0000      1.51
  @@ -352,9 +352,10 @@
        */
       public boolean hasLocalParams() {
        if (_hasLocalParams == null) {
  -         final int n = _templates.size();
  +         Vector templates = getAllValidTemplates();
  +         final int n = templates.size();
            for (int i = 0; i < n; i++) {
  -             final Template template = (Template)_templates.elementAt(i);
  +             final Template template = (Template)templates.elementAt(i);
                if (template.hasParams()) {
                    _hasLocalParams = new Boolean(true);
                    return true;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to