I have an XML file where each coupon has a category node. For example:
<master>
<coupon>
<category>category 1</category>
<description>blah blah blah</description>
</coupon>
<coupon>
<category>category 2</category>
<description>blah blah blah</description>
</coupon>
</master>
I'd like to filter the results so that only results from a given category display. This would be in my XSL (just shows an example)
select name="filter">
<option>category 1</option>
<option>category 2</option>
<xsl:for-each select="master/coupon">
<xsl:value-of select="category"/>
<xsl:value-of select="description"/>
</xsl:for-each>
I'm not sure where to start. Is there a Javascript method to do this? How do I associate the select dropdown to the XSL?
Thanks
Rick
<master>
<coupon>
<category>category 1</category>
<description>blah blah blah</description>
</coupon>
<coupon>
<category>category 2</category>
<description>blah blah blah</description>
</coupon>
</master>
I'd like to filter the results so that only results from a given category display. This would be in my XSL (just shows an example)
select name="filter">
<option>category 1</option>
<option>category 2</option>
<xsl:for-each select="master/coupon">
<xsl:value-of select="category"/>
<xsl:value-of select="description"/>
</xsl:for-each>
I'm not sure where to start. Is there a Javascript method to do this? How do I associate the select dropdown to the XSL?
Thanks
Rick