Hi everyone,
Just hoping someone can point me in the right direction for this (what should be) a fairly simple error...
The problem is that i have a nested loop but the inner loop is failing to read the value-of, am i missing some critical syntax? The inner loop is itself firing, but the individual values aren't shown.
Any help would be greatly appreciated as always,
========================================
START of XML Snippet:
========================================
Code:
<?xml version='1.0' encoding='UTF-8'?>
<DataSection>
<DataItem>
<response_code>00</response_code>
<current_date>9/06/2006</current_date>
<current_year>2006</current_year>
<doors_close>12:53:00 PM</doors_close>
<set_list_id>1 [5.5] [Gus And Franks Magical Tour of Chocolate]</set_list_id>
<set_list_id>Kick Me in The Head [1:30]</set_list_id>
<set_list_id>When you're the best, don't think you're going....</set_list_id>
</DataItem>
</DataSection>
========================================
End of XML Snippet:
========================================
========================================
START of XSL Snippet:
========================================
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/" >
<h3>Gig Listing</h3>
<xsl:for-each select="DataSection/DataItem">
<tr>
<td width="105" valign="top" class="normal"><b>Set List</b></td>
<td width="425" valign="top" class="normal">
<xsl:for-each select="set_list_id">
<xsl:value-of select="set_list_id" /> = Hello
</xsl:for-each>
</td>
</tr>
</xsl:for-each>
</table>
</xsl:template>
</xsl:stylesheet>
========================================
END of XSL Snippet:
========================================
I added the 'HELLO' within the for-each inner loop, so i can clearly see that it prints 3 times. But the actual value-of isn't printing the value...
Any ideas anyone?
Many thanks,
Tom