MattWoberts
Programmer
Hi,
I am new to XSLT stylesheets - and have what I hope may be a simple query
I have XML data of repeating items:
<Item>
<code>a</code>
<title>xxxx</title>
</item>
<Item>
<code>b</code>
<title>yyyy</title>
</item>
And I want to create an XSLT stylesheet to display each item in a table, BUT only if the "code" element of the "item" is set to "a" ... Please can someone help me out!!!
This is what I have so far that displays all "items" (cut down):
<xsl:template match="/Items">
<tr><td><xsl:value-of select="Title"/></td></tr>
</xsl:template>
Many thanks!
Mattwoberts.
I am new to XSLT stylesheets - and have what I hope may be a simple query
I have XML data of repeating items:
<Item>
<code>a</code>
<title>xxxx</title>
</item>
<Item>
<code>b</code>
<title>yyyy</title>
</item>
And I want to create an XSLT stylesheet to display each item in a table, BUT only if the "code" element of the "item" is set to "a" ... Please can someone help me out!!!
This is what I have so far that displays all "items" (cut down):
<xsl:template match="/Items">
<tr><td><xsl:value-of select="Title"/></td></tr>
</xsl:template>
Many thanks!
Mattwoberts.