sboag       01/06/26 12:00:00

  Modified:    java/src/org/apache/xalan/templates ElemApplyTemplates.java
  Log:
  Remove check for nParams > 0 in transformSelectedNodes in the loop where
  we're setting the params, because otherwise the param won't
  be nulled out, and xsl:param won't execute the default select.
  
  Revision  Changes    Path
  1.16      +4 -1      
xml-xalan/java/src/org/apache/xalan/templates/ElemApplyTemplates.java
  
  Index: ElemApplyTemplates.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/ElemApplyTemplates.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- ElemApplyTemplates.java   2001/06/13 03:42:14     1.15
  +++ ElemApplyTemplates.java   2001/06/26 18:59:59     1.16
  @@ -371,7 +371,9 @@
           if(template.m_frameSize > 0)
           {
             vars.link(template.m_frameSize);
  -          if(nParams > 0 && template.m_inArgsSize > 0)
  +          // You can't do the check for nParams here, otherwise the 
  +          // xsl:params might not be nulled.
  +          if(/* nParams > 0 && */ template.m_inArgsSize > 0)
             {
               int paramIndex = 0;
               for (ElemTemplateElement elem = template.getFirstChildElem(); 
  @@ -380,6 +382,7 @@
                 if(Constants.ELEMNAME_PARAMVARIABLE == elem.getXSLToken())
                 {
                   ElemParam ep = (ElemParam)elem;
  +                
                   int i;
                   for (i = 0; i < nParams; i++) 
                   {
  
  
  

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

Reply via email to