xsl-list
[Top] [All Lists]

Re: [xsl] finding out distinct node/values

2010-02-10 10:38:42
On 10 February 2010 16:34, Anil Kumar Veeramalli
<anil(_dot_)v(_at_)frescoinformatics(_dot_)com> 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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--