This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Unique Text
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Unique Text
- From: Sebastian Rahtz <sebastian dot rahtz at computing-services dot oxford dot ac dot uk>
- Date: Mon, 22 Jan 2001 16:41:25 +0000
- References: <3A6C5E37.7973321@ee.ed.ac.uk>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Mike Moran writes:
> Basically, all links are unique and so are all words. I know I can do
> unique links by grouping, but can I do words too?
its a bore in XSL, but you can do it. take each text node, and write a
recursive template to walk through word by word. unless you want to go
mildly mad, I'd suggest storing the results in a variable, converting
that to a nodeset (ie use the extension in most processors), and then
applying the sorting/grouping logic to the result.
sebastian
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list