[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XML List to Multi-column HTML transformation

Subject: XML List to Multi-column HTML transformation
From: "Chris Ward" <cward@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 26 Nov 2003 14:07:40 -0000
html multi column list
Hi all,

I've had a quick look in the archive and saw some items
close to this, I imagine it is a common question so
apologies if this is a pain.

Basically, is there a preferred method for transforming
a list of items (elements) in an XML source to a sorted,
multi-column HTML table.

e.g. 10 items in a list to a table of 3 cols. like this

		1	5	9
		2	6	10
		3	7
		4	8

I imagine I need to do something clever involving the use of 

	/MyElement[ position() mod X ] 

				where X is the no. of columns I require.


I assume I would need to use a select such as this for each column
since the HTML table is created row-wise.

	<tr>
		<td>col1 select</td>	
		<td>col2 select</td>
		<td>col3 select</td>
	</tr>

I can think of ways to do most of the work but if someone has
done this elegantly I'd love to know how.

Many thanks,
Chris

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.