Subject: [xsl] integer comparision From: T Uma Shankari <umashankari@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 17 Jan 2006 16:47:19 +0530 (IST) |
I have 2 integer values stored in different variables. By comparing both the values, i am trying to display another variable value in different color. But its showing all the variables in blue color. Here is my xsl file.
<xsl:template name="replaceoptionsupclose"> <xsl:param name="stringfinal"/> // final string <xsl:param name="optcorrectno"/> // integer value 1 <xsl:param name="optposition"/> // integer value 2 <xsl:if test="$optcorrectno=$optposition"> <font color="blue"> <xsl:value-of select="$stringfinal" /> // display final string </font><br></br> </xsl:if> <xsl:if test="not($optcorrectno=$optposition)"> <font color="black"> <xsl:value-of select="$stringfinal" /> // display final string </font><br></br> </xsl:if> </xsl:template>
thanks in advance! uma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Passing attributes in a n, Frank Klasens | Thread | Re: [xsl] integer comparision, David Carlisle |
Re: [xsl] Passing attributes in a n, David Carlisle | Date | Re: [xsl] integer comparision, David Carlisle |
Month |