Subject: RE: Getting a unique list - one more try at emailing this
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Sat, 7 Aug 2004 00:34:04 +0100
|
> I'd like to know how to print a unique list of states from
> the data set
> below. Thanks in advance.
Getting distinct values is a special case of grouping: see
http://www.jenitennison.com/xslt/grouping
Michael Kay
>
> A newbie.
>
> <data>
> <level name = "starter">
> <process name = "TR">
> <state name = "NY">143</state>
> <state name = "CA">19</state>
> <state name = "FL">215</state>
> </process>
> <process name = "PD">
> <state name = "NY">61</state>
> <state name = "CA">721</state>
> <state name = "FL">518</state>
> </process>
> </level>
> <level name = "mediumr">
> <process name = "TR">
> <state name = "NY">709</state>
> <state name = "CA"1285</state>
> <state name = "FL">52</state>
> </process>
> <process name = "YF">
> <state name = "NY">8</state>
> <state name = "CA">0</state>
> <state name = "FL">9</state>
> </process>
> </level>
> </data>
>
> _________________________________________________________________
> Check out Election 2004 for up-to-date election news, plus
> voter tools and
> more! http://special.msn.com/msn/election2004.armx
|