This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: dynamic font
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] dynamic font
- From: "Zafer Bayraktar" <z-b at turk dot net>
- Date: Thu, 25 Jan 2001 13:40:24 +0200
- References: <002901c086c0$0f143800$3f673c3e@mhkhome>
- Reply-To: xsl-list at lists dot mulberrytech dot com
My code is:
<xsl:for-each select="TEXT">
<input type="submit" name="Sil" value="Sil"> </input>
<xsl:attribute name = "xxx" ><xsl:value-of
select="@COLOR"/></xsl:attribute>
</xsl:for-each>
<font color={$xxx}>
<xsl:value-of select="TEXT"/>
</font>
the output is :
<input type="submit" name="Sil" value="Sil">
</input>
xxx="red"<font color="{$xxx}">
text 1_1
</font>
First of all, it output xxx="red" when creating the variable and
"{$xxx}" does not work. ?
----- Original Message -----
From: "Michael Kay" <mhkay@iclway.co.uk>
To: <xsl-list@lists.mulberrytech.com>
Sent: Thursday, January 25, 2001 1:15 PM
Subject: RE: [xsl] dynamic font
> > I want to dynamically set the font of xml value within xsl.
> > I mean, I want to set xxx dynamically <font color="xxx">, how is this
> > possible ?
>
> <font color="{$color}">
>
> Look in the documentation for "attribute value templates".
>
> Or you can use <xsl:attribute>
>
> Mike Kay
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list