Subject: Re: [xsl] dynamic font From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 25 Jan 2001 12:18:10 GMT |
> "{$xxx}" does not work. ? It's a bit hard to tell due to other errors but one possible reason for the {} syntax not working is that you are not using an implementation of XSLT, but rather the completely different language implemented in IE5 (unless you have upgraded to MSXML3). Does your stylesheet start <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" > Assuming you _are_ using XSLT then: <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:attribute has creates an attribute node. This can only be added to the result tree immediately after you have opened an element node. You have it _after_ </input> you want it before. </xsl:for-each> <font color={$xxx}> This would be OK if the variable xxx was defined anywhere, you don't say if it is. You could use something like color="{TEXT/@COLOR}" if that is the right XPath to the attribute value you need (Guessing from the way you'd constructed the for-each) David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] dynamic font, Zafer Bayraktar | Thread | Re: [xsl] dynamic font, Zafer Bayraktar |
Re: [xsl] dynamic font, Zafer Bayraktar | Date | RE: [xsl] Getting Current Date, Richard Mitchell |
Month |