View Single Post
  #1 (permalink)  
Old February 9th, 2007, 03:04 PM
tclotworthy tclotworthy is offline
Authorized User
Points: 235, Level: 4
Points: 235, Level: 4 Points: 235, Level: 4 Points: 235, Level: 4
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2007
Location: , , .
Posts: 51
Thanks: 3
Thanked 0 Times in 0 Posts
Default How to increment/decrement a parameter in XSL

Hello,
I have a need to increase and decrease a column position variable in XSLT. HTML cells are generated from an xsl:apply-templates construct that recursively traverses hierarchically-arranged elements in the corresponding XML file. The problem I face is not knowing how, in XSLT, to maintain a column position value as the tree nodes are added (and as the template is repeatedly called from itself).

In other words, the column value would grow and shrink depending on the where the element is in the hierarchy. In java I could do this easily, but am struggling to do the same thing in XSLT. Any insights are greatly appreciated. Thanks.

Reply With Quote