|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Problem with obtaining distinct values from a var
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 :-)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








