This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
how to seperate sequence?
- From: "Thomas Sandor" <tsandor at rndsoft dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 12 Aug 2002 11:25:46 +0200
- Subject: [xsl] how to seperate sequence?
- Reply-to: xsl-list at lists dot mulberrytech dot com
hi all,
Does anybody have and idea how to seperate a <para/> list so that every
second (or third) <para> will go to another column (<td/>) in a table?
e.g.: XML look like:
<content>
<para>some text 1</para>
<para>some text 2</para>
<para>some text 3</para>
<para>some text 4</para>
<para>some text 5</para>
</content>
and the output should look like:
some text 1 some text 2
some text 3 some text 4
some text 5
How can I use e.g. a 'xsl:if test = "position() mod 2 == 0"' expression, or
does anyone have a better way to do it?
Thanks in advance.
Regards,
Thomas
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list