sboag       00/10/17 12:02:03

  Modified:    java/src/org/apache/xalan/templates ElemAttribute.java
  Log:
  Don't pass new string buffer to avt.
  
  Revision  Changes    Path
  1.5       +2 -4      
xml-xalan/java/src/org/apache/xalan/templates/ElemAttribute.java
  
  Index: ElemAttribute.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/java/src/org/apache/xalan/templates/ElemAttribute.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- ElemAttribute.java        2000/10/13 00:34:46     1.4
  +++ ElemAttribute.java        2000/10/17 19:02:02     1.5
  @@ -156,8 +156,7 @@
       XPathContext xctxt = transformer.getXPathContext();
       
       // The attribute name has to be evaluated as an AVT.
  -    String attrName = m_name_avt.evaluate(xctxt, sourceNode, this,
  -                                          new StringBuffer());
  +    String attrName = m_name_avt.evaluate(xctxt, sourceNode, this);
       String origAttrName = attrName;      // save original attribute name
       
       // Get the children of the xsl:attribute element as the string value.
  @@ -181,8 +180,7 @@
       if(null != m_namespace_avt)
       {
         // The namespace attribute is an AVT also.
  -      attrNameSpace = m_namespace_avt.evaluate(xctxt, sourceNode, this,
  -                                               new StringBuffer());
  +      attrNameSpace = m_namespace_avt.evaluate(xctxt, sourceNode, this);
         if(null != attrNameSpace && attrNameSpace.length()>0)
         {
           // Get the prefix for that attribute in the result namespace.
  
  
  

Reply via email to