Subject: Re: [xsl] Retrieving sequence of unique strings from another sequence From: Liam R E Quin <liam@xxxxxx> Date: Tue, 05 Jan 2010 14:50:43 -0500 |
On Tue, 2010-01-05 at 13:41 -0500, Houghton,Andrew wrote: > I have a sequence of strings, e.g., ('abc', 'def', 'def', 'ghi'), and > I want to create a new sequence that will have only the unique strings > in it. [...] > Can anyone suggest how I might use one or more XSL 2.0 functions to > return only the unique strings. $sequence[count(index-of($sequence, .)) eq 1] maybe? Liam -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org www.advogato.org
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Retrieving sequence of un, G. Ken Holman | Thread | RE: [xsl] Retrieving sequence of un, Houghton,Andrew |
Re: [xsl] Associating javascript wi, Liam R E Quin | Date | Re: [xsl] Modern web site design wi, David Carlisle |
Month |