[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Finding Even and odd in xslt
----- Original Message -----
From: "Kapur, Rajneesh" <Rajneesh.Kapur@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Friday, January 28, 2005 9:31 PM Subject: Finding Even and odd in xslt Your variable is out of scope, you need to reverse the xslt:Hi, I want to test whether a number is even or odd. Therefore I have the following code. <xsl:variable name="toss"> <xsl:choose> <xsl:when test="$modulas=number(1)">1</xsl:when> <xsl:otherwise>0</xsl:otherwise> </xsl:choose> </xsl:variable> -- Joe
|
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
|