Subject: Re: [xsl] Occurences of comma-separated values From: "Dimitre Novatchev" <dnovatchev@xxxxxxxxx> Date: Sat, 29 Jul 2006 08:44:42 -0700 |
But for my current problem, there was no such help available.
-- Cheers, Dimitre Novatchev --------------------------------------- Truly great madness cannot be achieved without significant intelligence.
For instance, I have the following XML-File:document.
<list> <item1 ids="a,b,c,e" /> <item2 ids="b,c,d" /> <item3 ids="a,c,d,e" /> <item4 ids="e,f" /> <item5 ids="a,c,d,e,g" /> </list>
I contemplate how to count the occurences of (a) all ids (e.g. 'a') in the document and (b) to count the occurences of a specific (known) id (e.g. 'f') in the
easily adaptable solution on the web, numerous time on this list here.
For case a the output should be like this:
a: 3 b: 2 c: 4 d: 3 e: 4 f: 1 g: 1
I started to learn XSL yesterday. For several other problems, I found an
But for my current problem, there was no such help available. Of course, I found here a similar posting which deals with occurences of
equal nodes (http://www.stylusstudio.com/xsllist/200309/post20830.html), but I don't know how to adapt it. So please find a solution and help me and others who have the same problem.
Thanks in advance,
S. Renault --
Echte DSL-Flatrate dauerhaft f|r 0,- Euro*. Nur noch kurze Zeit! "Feel free" mit GMX DSL: http://www.gmx.net/de/go/dsl
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Occurences of comma-separated, Smoother | Thread | Re: [xsl] Occurences of comma-separ, Mukul Gandhi |
[xsl] Occurences of comma-separated, Smoother | Date | Re: [xsl] Occurences of comma-separ, Mukul Gandhi |
Month |