Page 1 of 1

Div height Problem in XSL

Posted: Sat Sep 24, 2005 2:06 pm
by stelabouras
Hello everyone!

I face the following problem :

i have a menu which i want to be generated dynamically using xsl in a for-each loop where every time xsl retrieves metadata information from the pages of the site and put them as a button in the menu. The button are shown as divs over a static background picture of the menu. The problem is the following, i can not find a way to increment the height of the div each time the loop is repeated and so the buttons are generated the one over the other! I know that xsl does not support altering param or variable values, so can someone please help me find a way to increment each time the top parameter of the div tag in order the buttons to be shown correctly?

Thanks in advance for your help :D

Posted: Mon Sep 26, 2005 11:37 am
by george
Hi,

Try using the position() funtion. It should take values from 1 to the number of items you iterate in the for-each loop.

Best Regards,
George