Div height Problem in XSL

Here should go questions about transforming XML with XSLT and FOP.
Posts: 1
Joined: Sat Sep 24, 2005 1:57 pm

Div height Problem in XSL

Post by stelabouras » Sat Sep 24, 2005 2:06 pm

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

Site Admin
Posts: 2102
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Mon Sep 26, 2005 11:37 am


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,

Post Reply