This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Using an XSLT value as a HTML parameter
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Using an XSLT value as a HTML parameter
- From: "J.Brown (Ender/Amigo)" <ender at enderboi dot com>
- Date: Fri, 14 Sep 2001 12:38:06 +0800 (WST)
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hey all.
I'm trying to do something similar to this:
(xml)
<text format="color" value="#113344">
(/xml)
(xsl)
<xsl:template match="text">
<font "{./@format}"="{./@value}">
<xsl:apply-templates/>
</font>
</xsl:template>
(/xsl)
Alternativly a way to simply say <text color="#1111111"> without having to
put in a large number of ifs (as the color tag may be something different)
would be neat :)
TIA!
- Ender
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list