[Home] [By Thread] [By Date] [Recent Entries]
Ender:
At 01:10 PM 9/15/01, Carlos wrote: Something like this Yes, it does (XSLT 7.1.3). Also, this code is functionally the same as <xsl:template match="text">
<font>
<xsl:attribute name="{@format}">
<xsl:value-of select="@value"/>
</xsl:attribute>
[ ... whatever ... ]
</font>
</xsl:template>Whatever you want inside the font element (you probably want at least an <xsl:apply-templates/>) comes after the <xsl:attribute> element, which must come first among its siblings. This is a perfect application for <xsl:attribute>, which (as we were saying not long ago) is often used when a literal result attribute (the <font color="@value"> form) could be used just as well. Here it can't, since you have to query the document to find the name you want. (Thanks Carlos.) Enjoy, Wendell
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|

Cart



