[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Problem with obtaining distinct values from a var

Subject: Re: Problem with obtaining distinct values from a variable containg a nodeset
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 30 Nov 2005 09:58:12 +1100
nodes belong to different documents
And of course, the set:distinct() function from EXSLT.

As you're using .NET, the XML-MVP project's implementation of EXSLT
comes particularly handy.

I can personally guarantee that the functions from the "set" module
have been meticulously optimized   :o)



--
Cheers,
Dimitre Novatchev
---------------------------------------
To avoid situations in which you might make mistakes may be the
biggest mistake of all.



On 11/30/05, Dimitre Novatchev <dnovatchev@xxxxxxxxx> wrote:
> On 11/30/05, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> > This is dead easy in XSLT 2.0, but assuming that you want a 1.0 solution,
> > the only common grouping technique that works on a node-set that might
> > contain nodes from different documents is Ken Holman's variable-based
> > grouping technique. Google on that, or see
> > http://www.stylusstudio.com/xsllist/200410/post20410.html
>
>
> Not the only one -- see also the makeDistinct template from FXSL,
> which allows to find distinct values in any nodeset, even when the
> nodes belong to different documents:
>
> For an explanation and a concrete example see:
>
>    http://sources.redhat.com/ml/xsl-list/2002-07/msg00832.html
>
> and
>
>    http://www.biglist.com/lists/xsl-list/archives/200112/msg00805.html
>
>
>
> --
> Cheers,
> Dimitre Novatchev
> ---------------------------------------
> To avoid situations in which you might make mistakes may be the
> biggest mistake of all.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.