|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Conditionally use attribute sets?
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
Tilichargez cette version sur http://fr.messenger.yahoo.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








