posted 22 years ago
How do I extract a list of 'states' using XSLT?
I want each state listed only once. Can XSLT do this?
Any suggestions appriciated.
My XML looks like this (but with many more stores)...
<?xml version="1.0"?>
<stores>
<store storename="Rocky's Auto">
<state>CO</state>
</store>
<store storename="John Elway Used Cars">
<state>CO</state>
</store>
<store storename="Wild Pete's Used Cars">
<state>FL</state>
</store>
</stores>
Output should be something like this...
<states>
<state>CO</state>
<state>FL</state>
</states>