[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
Data Islands populating a table
- To: <xml-dev@...>
- Subject: Data Islands populating a table
- From: "Richard Vander Reyden" <richard-xml@...>
- Date: Sun, 29 Jun 2003 18:33:09 +1000
- Importance: Normal
hi,
I am after a method to automatically generate a table from an XML file.
The code below generates a table with a fixed number of columns but a
variable number of rows.
What I want to be able to do is have only 1 row but a variable number of
columns, based on the data in the XML data file. I don't need to use
Data Islands if there is any other method.
Thanks
Richard
<html>
<body>
<xml id="cdcat" src="cd_catalog.xml"></xml>
<table border="1" datasrc="#cdcat">
<tr>
<td><span datafld="ARTIST"></span></td>
<td><span datafld="TITLE"></span></td>
</tr>
</table>
</body>
</html>
|