XSLT: Split into multiple columns

G

Gary Johnson

I am wanting to create an HTML table using XSLT that looks like: -

-------------
| A | B | C |
-------------
| D | E | F |
-------------
| G | H | |
-------------

based on some XML that looks like:

<items>
<item>A</item>
<item>B</item>
<item>C</item>
<item>D</item>
<item>E</item>
<item>F</item>
<item>G</item>
<item>H</item>
</items>

.... and (as you can probably guess from the fact I am writing this!) I
can't work out how to do it. Anyone got any ideas?

Many thanks
G
 
B

Baldo

... and (as you can probably guess from the fact I am writing this!) I
can't work out how to do it. Anyone got any ideas?

use position() function (and "mod" math function)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top