[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: "SQL distinct" like applying of templates
A FAQ: http://www.jenitennison.com/xslt/grouping Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: news@xxxxxxxxxxx [mailto:news@xxxxxxxxxxx] > Sent: 03 November 2004 13:26 > To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' > Subject: "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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|