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: [EMAIL PROTECTED]
Reviewed by: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]