Take a look at xsl:for-each-group in the XSLT 2.0 specification.
 
Michael Kay
-----Original Message-----
From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Alexander Wohrer
Sent: 26 November 2003 13:38
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Distinct not only for values?

Hello - saw that saxon provides distinct-values() functionality.
 
Is there also a function not only for values - lets say complete nodes?
 
Got this doc and only want to get each row once:
 
<doc>
    <row>
        <col>1</col>
        <col>Alex</col>
    </row>
    <row>
        <col>2</col>
        <col>Hugo</col>
    </row>
    <row>
        <col>1</col>
        <col>Alex</col>
    </row>
    ....
</doc>
 
Any help welcome,
    Alexander Wöhrer