1<?xml version="1.0"?> 2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 3 version="1.0"> 4 <xsl:attribute-set name="my-attr-set"> 5 <xsl:attribute name="attr">from-attr-set</xsl:attribute> 6 </xsl:attribute-set> 7 8 <xsl:template match="/"> 9 <p xsl:use-attribute-sets="my-attr-set" attr="from-p-tag"> 10 <xsl:attribute name="attr">from-xsl-attr</xsl:attribute> 11 </p> 12 </xsl:template> 13 14</xsl:stylesheet> 15