Subject: [xsl] displaying a list in a multi-column table|
From: "Michael Tracey Zellmann" <tracey.zellmann@xxxxxxxxx>
Date: Fri, 25 Jan 2008 08:49:38 -0500
I have a list of words, possibly 3500 to 7000 in length, in alphabetical order. I need to display them in an HTML page in a table of four columns. The first quarter of the words should be in the first column, the second quarter in the second column, etc. Since the total may not be divisible by four, the final column may be incomplete. Let's say the input is of the form: <wordList> <word>aaron</word> <word>abated</word> <word>abatement</word> .. </wordList> How can I do this with an XSLT transform? I can use XSLT 2.0 I have done similar things in the past, but looking back, they aren't graceful and I don't think they take advantage of the current capabilities of the language.