xsl literal with <xsl:if>

Posted by Elena on Stack Overflow See other posts from Stack Overflow or by Elena
Published on 2010-04-20T14:40:30Z Indexed on 2010/04/20 14:43 UTC
Read the original article Hit count: 1146

Filed under:
|
|
|

Hi, I have to write a very simple code in xsl: IF column=0 if result = .34 set background color to green and write $result, but if result = 0.10 set background color to white and write the word "QQQ" and what doesn't work is:

<xsl:if test="$result  = 0.35 and $column = 0">
    <xsl:attribute name='background-color'>#669933</xsl:attribute>
    <xsl:value-of select="result"/>      
</xsl:if>

<xsl:if test="$result = 0.10">
    <xsl:value-of select="QQQ"/>
</xsl:if>

any suggestions? thanks in advance

© Stack Overflow or respective owner

Related posts about xsl

Related posts about literal