[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:if @attribute + xsl:variable not working
This is an alternative solution to your problem:
<xsl:for-each select="area"> <td> <xsl:attribute name="bgcolor"> <xsl:choose> <xsl:when test="@position=1"> #FF7A0 </xsl:when> <xsl:otherwise> #FF980F </xsl:otherwise> </xsl:choose> </xsl:attribute> </td> </xsl:for-each> About the message error, I think that the problem is an "out-of-scope" matter, because both the <xsl:variable> are inside an <xsl:if> element. Give an eye to Mickeal Kay's XSLT Programmers Reference, page 315: the same example! :) Aniceto Lopez wrote: Hi all: why if 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
|