|
Subject: Re: [xsl] dynamic font From: "Zafer Bayraktar" <z-b@xxxxxxxx> Date: Thu, 25 Jan 2001 13:40:24 +0200 |
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: [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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] dynamic font, Michael Kay | Thread | Re: [xsl] dynamic font, David Carlisle |
| RE: [xsl] dynamic font, Michael Kay | Date | Re: [xsl] dynamic font, David Carlisle |
| Month |