This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Set of distinct values
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Set of distinct values
- From: "Jason Macki" <jmacki at iisd dot ca>
- Date: Thu, 31 May 2001 14:02:57 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hello,
I was wondering anyone can suggest a way that XSL can select a set of
distinct values from an XML document, similar to a "Select DISTINCT"
command in SQL.
For example, I'd like to transform this:
<root>
<node>a</node>
<node>b</node>
<node>c</node>
<node>a</node>
<node>b</node>
<node>c</node>
<node>a</node>
<node>b</node>
<node>c</node>
<node>a</node>
<node>b</node>
<node>c</node>
<node>d</node>
</root>
Into this =>
<distinct>
<node>a</node>
<node>b</node>
<node>c</node>
<node>d</node>
</distinct>
Thanks,
Jason
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list