mkwan       2002/12/05 07:31:19

  Modified:    java/src/org/apache/xalan/templates ElemVariable.java
  Log:
  Commit the patch from Arun Yadav([EMAIL PROTECTED]) to fix Bugzilla 15089.
  Don't add the func:result element to the variable table because it does not 
have
  a name.
  
  Revision  Changes    Path
  1.21      +1 -1      
xml-xalan/java/src/org/apache/xalan/templates/ElemVariable.java
  
  Index: ElemVariable.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/ElemVariable.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- ElemVariable.java 6 Jun 2002 20:25:17 -0000       1.20
  +++ ElemVariable.java 5 Dec 2002 15:31:19 -0000       1.21
  @@ -397,7 +397,7 @@
         
       // Only add the variable if this is not a global.  If it is a global, 
       // it was already added by stylesheet root.
  -    if(!(m_parentNode instanceof Stylesheet))
  +    if(!(m_parentNode instanceof Stylesheet) && m_qname != null)
       {
         m_index = cstate.addVariableName(m_qname) - cstate.getGlobalsSize();
       }
  
  
  

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

Reply via email to