xsl-list
[Top] [All Lists]

RE: Getting a unique list - one more try at emailing this

2004-08-06 16:34:04

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


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--





<Prev in Thread] Current Thread [Next in Thread>