This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

how to seperate sequence?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]