[xsl] Eliminating duplicates while processing

Subject: [xsl] Eliminating duplicates while processing
From: José Carlos Ramalho <jcr@xxxxxxxxxxxx>
Date: Wed, 13 Nov 2002 11:56:04 -0000
Hi all, I am having the following problem:

I want to process a list of nodes that can appear at several different
points of the structure, and I ant to process them in a particular order.
This is easy to specify:

        for-each select="//node-name"
            sort select="criteria"

The problem is that I want to supress the node's processing if it is equal
to the one that precedes it in that order. How can I have access to the last
processed node while processing the current one?

TIA
jcr
----------------------------------------------------------------------------
---
José Carlos Ramalho                                   orienteer
Dep. Informática - U.Minho                          windsurfer
http://www.di.uminho.pt/~jcr                         engineer
+351 253 604479
----------------------------------------------------------------------------
-----



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread