|
Subject:
|
create 2-columns table from an XML document
|
|
Posted By:
|
frosty1575
|
Post Date:
|
5/16/2006 3:18:32 AM
|
Hi all,
I have an XML document with a list of names.
Something like this
<NAMES> <NAME> Jean Dupont </NAME> <NAME> Marie Laforêt </NAME> <NAME> Celine Dion </NAME> <NAME> Carlos Santana </NAME> ... </NAMES>
I want to create an XSLT stylesheet that could output the names in a HTML table with 2 names per row
Something like this
+---------------------------------+ | Jean Dupont | Marie Laforêt | | Celine Dion | Carlos Santana | +---------------------------------+
There can be an arbitrary number of names and I can't modify the XML structure (but I can add attributes to it if it helps)
I'm quite new in XSLT and I don't know if such a thing would be possible without too much complexity.
Thanks to anyone that could help ...
|
|
Reply By:
|
mhkay
|
Reply Date:
|
5/16/2006 3:35:21 AM
|
See
http://www.dpawson.co.uk/xsl/sect2/N7450.html
especially the first entry.
Michael Kay http://www.saxonica.com/ Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
|
|
Reply By:
|
frosty1575
|
Reply Date:
|
5/16/2006 4:17:23 AM
|
That was exactly what I was looking for.
Thanks a lot !
Thomas
|