My xml looks like this
<catalog>
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
<cd>
<title>Hide your heart</title>
<artist>Bonnie Tyler</artist>
<country>UK</country>
<company>CBS Records</company>
<price>9.90</price>
<year>1988</year>
</cd>
</catalog>
what I want to achieve is the html table where number of rows are dynamic, for example:
table should look like this:
TABLE HEADER
<tr>
<td>Title</td>
<td>Empire Burlesque</td>
</tr>
<tr>
<td>Artist</td>
<td>Bob Dylan</td>
</tr>
<tr>
<td>country</td>
<td>USA</td>
</tr>
Goes on For all the nodes available for cd.
All I want to be able to loop for number of nodes available under <cd> and generate individual <tr> for each node in the html output. So that I dont have to use <xsl:value-of select> with particular xml node name.
Can anyone help me understand the basic of the part? Thanks.