http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2536 *** shadow/2536 Tue Jul 10 06:40:30 2001 --- shadow/2536.tmp.24038 Tue Jul 10 06:40:30 2001 *************** *** 0 **** --- 1,43 ---- + +============================================================================+ + | imerged attrib sets with redundant attribs last one applies | + +----------------------------------------------------------------------------+ + | Bug #: 2536 Product: XalanJ2 | + | Status: NEW Version: 2.0.0 | + | Resolution: Platform: All | + | Severity: Minor OS/Version: All | + | Priority: Other Component: org.apache.xalan.xsltc | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + XSLTC fails conformance test attribset28. When use-attribute-sets + leads to a merging of attributes which have the same name (in this case "color") + the one that comes later in the stylesheet should be used. + + The stylesheet has + + <xsl:template match="doc"> + <xsl:copy use-attribute-sets="set1 set2 set3"/> + </xsl:template> + + <xsl:attribute-set name="set1"> + <xsl:attribute name="color">black</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="set2"> + <xsl:attribute name="color">blue</xsl:attribute> + </xsl:attribute-set> + + <xsl:attribute-set name="set3"> + <xsl:attribute name="color">green</xsl:attribute> + </xsl:attribute-set> + + The attribute named "color" is redundantly defined in all three of the merged + attribute sets. Since set3 comes last, the value of the color attribute in the + copied element should be "green". + + XT, Saxon, and Xalan agree, but XSLTC says "blue" incorrectly.
