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

RE: Using XSl:Variable and XSL:if together.

Subject: RE: Using XSl:Variable and XSL:if together.
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Thu, 1 Apr 2004 09:49:11 +0300
xsl variable xsl if

> oh. I just realized that Variable value cann't be reset once 
> it is defined.
> So, is there a alternative way where I can do different 
> operation depending on the position of node(element) to be 
> even or odd.

  <xsl:when test="position() mod 2 = 1">

or if you can't use position, you have to count the preceding nodes yourself.



Current Thread


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.
First Name
Last Name
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.