xsl-list
[Top] [All Lists]

RE: "SQL distinct" like applying of templates

2004-11-03 06:39:29
A FAQ: http://www.jenitennison.com/xslt/grouping

Michael Kay
http://www.saxonica.com/ 

-----Original Message-----
From: news(_at_)swisslab(_dot_)de [mailto:news(_at_)swisslab(_dot_)de] 
Sent: 03 November 2004 13:26
To: 'xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com'
Subject: [xsl] "SQL distinct" like applying of templates

Hello List,

I have a list, with many elements having equal names. The 
values of the
items are strings.
I want to select each different string exactly one time. Just 
like in SQL
while using the "distinct" option.

Example:
<list>
      <item>string1</item>
      <item>string2</item>
      <item>string2</item>
      <item>string3</item>
</list>

I want to get the following list, omitting the second node 
with the value
"String2".
string1
string2
string3


Is this possible woth XSLT, and how?

thanks a lot!

jan

--+------------------------------------------------------------------
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>