[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: integer comparision

Subject: RE: integer comparision
From: "Gabriel Osorio" <gosorio@xxxxxxxxxxx>
Date: Tue, 17 Jan 2006 08:39:06 -0500
comparision
</font><br></br>

Is:

<br/><br/>


-----Original Message-----
From: T Uma Shankari [mailto:umashankari@xxxxxxxxxxxxxxxxxxxx] 
Sent: Tuesday, January 17, 2006 6:17 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  integer comparision


Greetings!

   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>



please correct me where i am doing wrong


thanks in advance!
uma

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.