G
Guttyguppy
I have
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<xsl:for-each select="category/entry">
<xsl:value-of select="job"/><br/>
<xsl:value-of select="date"/><br/>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
and my .xml file has
<category>Jobs</category>
<entry>
<job>Plumber</job>
<date>12/5/04</date>
</entry>
<category>Teams</category>
<entry>
<job>Jets</job>
<date>12/3/04</date>
</entry>
I want to have unlimited entries, but I also want to run a for-each on
the categories. How would I structure something like that? I'm
absolutely new to this, so please bear with me! Thanks.
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<xsl:for-each select="category/entry">
<xsl:value-of select="job"/><br/>
<xsl:value-of select="date"/><br/>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
and my .xml file has
<category>Jobs</category>
<entry>
<job>Plumber</job>
<date>12/5/04</date>
</entry>
<category>Teams</category>
<entry>
<job>Jets</job>
<date>12/3/04</date>
</entry>
I want to have unlimited entries, but I also want to run a for-each on
the categories. How would I structure something like that? I'm
absolutely new to this, so please bear with me! Thanks.