Removing duplicate elements a-priori?

Subject: Removing duplicate elements a-priori?
From: Gordon Vidaver <gvidaver@xxxxxxx>
Date: Fri, 16 Jun 2000 17:43:18 -0400
I'm trying to remove duplicate elements from an output document. I've seen the examples for doing this in the archives, but they all seem to assume some knowledge of the structure of the input document. For example:

	<xsl:for-each select="item[not(.=preceding-sibling::item)]"> 	

But with this you need to know that there is an element named "item" in the input.

For example I want to take :


And produce just :


without knowing that there is an employee tag in the input.

Any help would be most appreciated.


Gordon Vidaver

XSL-List info and archive:

Current Thread