Div height Problem in XSL

Here should go questions about transforming XML with XSLT and FOP.
stelabouras
Posts: 1

Div height Problem in XSL

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
george
Site Admin
Posts: 2100

Mon Sep 26, 2005 11:37 am

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

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 2 guests