This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]