[RESOLVED] xsl query problem
Below is a short sample of the xml that I'm working with. What I would like is to use a for-each loop to pull the <totalavailable> by region.
I thought something like this would work but it isn't. Anyone see what I'm missing?
Code:
<xsl:for-each select="coop/coop_list/coop[region='02']/totalavailable">
<td><xsl:value-of select="totalavailable"/></td>
</xsl:for-each>
Code:
<coop>
<coop_list>
<coop>
<region>01</region>
<budgetfy>2002</budgetfy>
<totalavailable>2.9</totalavailable>
</coop>
<coop>
<region>01</region>
<budgetfy>2003</budgetfy>
<totalavailable>0</totalavailable>
</coop>
<coop>
<region>02</region>
<budgetfy>2001</budgetfy>
<totalavailable>31.03</totalavailable>
</coop>
<coop>
<region>02</region>
<budgetfy>2002</budgetfy>
<totalavailable>2.16</totalavailable>
</coop>
<coop>
<region>02</region>
<budgetfy>2003</budgetfy>
<totalavailable>108.1</totalavailable>
</coop>
</coop_list>
</coop>