You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Brian Dupras <br...@centera.com> on 2000/02/09 02:42:40 UTC

simple (?) xsl question

Let's say I'm doing an <xsl:for-each ...> over an unknown number of xml
elements.  I want to format these elements to an HTML table that 4 columns
wide.  Inside my <xsl:for-each ...>, how do I say "every fourth iteration,
close the <html:tr> and open another <html:tr>"?


Brian Dupras
Centera Information Systems, Inc.
phone	303.939.0200 x294
fax	303.939.0111
web	http://www.centera.com
email	briand@centera.com

Re: simple (?) xsl question

Posted by Xavier Maysonnave <x....@goaltech.com>.
In the XSLT recommendation try to find the "variable"  notion.
something like <xsl:variable>
with that you should be able to store your iteration and to manage your
particular tbale layout.
bye.
hope it helps.