Subject: Re: finding out distinct node/values
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Wed, 10 Feb 2010 16:38:17 +0000
|
On 10 February 2010 16:34, Anil Kumar Veeramalli
<anil.v@xxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> I am using XSL1.0 and I want to find out distinct records.
>
> <table>
> <rows>
> <row>
> <name>A</name>
> </no>1</no
> </row>
> <row>
> <name>A</name>
> </no>2</no
> </row>
> <row>
> <name>B</name>
> </no>2</no
> </row>
> <row>
> <name>C</name>
> </no>1</no
> </row>
> <row>
> <name>C</name>
> </no>2</no
> </row>
> </rows>
> </table>
>
> By passing the attribute "name" as a parameter, I would like to find out
the
> all distinct values of name Attribute . i.e A,B and C
distinct-values(//*[name() = $name])
cheers
--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/
|