sboag       01/03/26 07:47:00

  Modified:    java/src/org/apache/xalan/templates ElemForEach.java
  Log:
  Fix for bug# 1116, getMatchedTemplate throws ClassCastException.
  Don't push template unless it is a xsl:template.
  
  Revision  Changes    Path
  1.19      +4 -2      
xml-xalan/java/src/org/apache/xalan/templates/ElemForEach.java
  
  Index: ElemForEach.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/ElemForEach.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- ElemForEach.java  2001/03/06 05:50:22     1.18
  +++ ElemForEach.java  2001/03/26 15:47:00     1.19
  @@ -472,7 +472,8 @@
             try
             {              
               xctxt.pushCurrentNode(child);
  -            transformer.pushPairCurrentMatched(template, child);
  +            if(needToFindTemplate)
  +              transformer.pushPairCurrentMatched(template, child);
   
               if (check)
                 guard.push(this, child);
  @@ -507,7 +508,8 @@
             finally
             {
               xctxt.popCurrentNode();
  -            transformer.popCurrentMatched();
  +            if(needToFindTemplate)
  +              transformer.popCurrentMatched();
   
               if (check)
                 guard.pop();
  
  
  

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

Reply via email to