Subject: Re: [xsl] Problem with obtaining distinct values from a variable containg a nodeset From: Ragulf Pickaxe <ragulf.pickaxe@xxxxxxxxx> Date: Tue, 29 Nov 2005 15:54:11 +0100 |
Hi Ian, > How would I go about getting distinct values from the single parameter > "$services"? It would be easier if you gave an example of what the $services look like. I will Assume that it will be a group of elements called foo <foo>value1</foo> <foo>value2</foo> <foo>value1</foo> <foo>value3</foo> <foo>value2</foo> Then you can find them the usual way (relying on implicit conversion to string): <xsl:for-each select="$services[.!=preceding-sibling::foo]"> Do something </xsl:for-each> Regards, Ragulf Pickaxe :-)
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Problem with obtaining distin, Ian E. Powell | Thread | Re: [xsl] Problem with obtaining di, andrew welch |
[xsl] get child tag value, Mikael Petterson (KI | Date | [xsl] FW: get child tag value, Mikael Petterson (KI |
Month |