|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: dynamic font
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@xxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, January 25, 2001 1:15 PM
Subject: RE: 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
|
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








