Subject: Re: [xsl] Listing keywords From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 12 Jun 2006 11:42:12 +0100 |
> Anyone know how I can do this? I'm using XSL/XPath 1.0. This is one problem where XPath2 makes it 10000 times easier:-) It's possible in xslt1 you just need to write (or use, from a library such as, probably, fxsl) a recursive template that splits the strings up using substring-before() on the comma and builds up the unique keyword lists. If you allow yourself some extension functions in 1.0 then the code would be easier. especially if you have xx:node-set() to hand which would allow you to do it in two phases, first splitting up the commans then doing a standard xslt1 grouping idionm to find unique values. If you also have an extension such as saxon:tokenize() you acan save yourself a recursive tokenising template as well. If you have neither eg you want it to run in mozilla, it's still possible, just a little more involved. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Listing keywords, Phillip B Oldham | Thread | RE: [xsl] Listing keywords, Michael Kay |
Re: [xsl] root siblings contain xml, David Carlisle | Date | Re: [xsl] Listing keywords, andrew welch |
Month |