You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/06/12 16:09:53 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler AttributeSet.java

morten      01/06/12 07:09:53

  Modified:    java/src/org/apache/xalan/xsltc/compiler AttributeSet.java
  Log:
  Final fix (for now) for attribute sets. In cases where multiple
  <xsl:attribute-set.../> elements make up one attribute set (ie. they share
  the same name) attributes that occured last in the stylesheet will take
  precedence.
  PR:		n/a
  Obtained from:	n/a
  Submitted by:	morten@xml.apache.org
  Reviewed by:	morten@xml.apache.org
  
  Revision  Changes    Path
  1.5       +2 -2      xml-xalan/java/src/org/apache/xalan/xsltc/compiler/AttributeSet.java
  
  Index: AttributeSet.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/AttributeSet.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- AttributeSet.java	2001/06/11 12:03:28	1.4
  +++ AttributeSet.java	2001/06/12 14:09:53	1.5
  @@ -1,5 +1,5 @@
   /*
  - * @(#)$Id: AttributeSet.java,v 1.4 2001/06/11 12:03:28 morten Exp $
  + * @(#)$Id: AttributeSet.java,v 1.5 2001/06/12 14:09:53 morten Exp $
    *
    * The Apache Software License, Version 1.1
    *
  @@ -193,7 +193,7 @@
   	// Merge the contents of the two attribute sets...
   	final Enumeration attributes = other.elements();
   	while (attributes.hasMoreElements())
  -	    addElement((XslAttribute)attributes.nextElement());
  +	    setFirstElement((XslAttribute)attributes.nextElement());
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org