xsl-list
[Top] [All Lists]

Conditionally use attribute sets?

2005-11-14 02:57:30
  Hi

  I'd like to conditionally add an attribute set to an
element.  Something like this:

    <xsl:attribute-set name="my.set">
      <xsl:attribute name="attr">value</xsl:attribute>
    </xsl:attribute-set>

    <literal-res-elem>
      <xsl:if test="@condition">
        <xsl:use-attribute-sets name="my.set"/>
      </xsl:if>
    </literal-res-elem>

  But after the recommendation, it seems it's not possible:

    Attribute sets are used as follows:

    The xsl:copy and xsl:element instructions have an
    use-attribute-sets attribute.

    Literal result elements allow an xsl:use-attribute-sets
    attribute, which is evaluated in the same way as the
    use-attribute-sets attribute of xsl:element and
    xsl:copy.

  Did I miss something?

  Thanks,

--drkm



















        

        
                
___________________________________________________________________________ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--