RE: [xsl] Filtering out duplicates in current-group()

Subject: RE: [xsl] Filtering out duplicates in current-group()
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 29 Mar 2006 18:42:13 -0500
At 04:48 PM 3/29/2006, Mike wrote:
<p><xsl:apply-templates select="current-group()[1]/Title"/></p>
<p><xsl:apply-templates select="current-group()/*[not(self::Title)]"/></p>

Or (since we're in XSLT 2.0):


<p><xsl:apply-templates select="current-group()[1]/Title"/></p>
<p><xsl:apply-templates select="current-group()/(* except Title)"/></p>

... which does the same (thanks to Mike and the other XPath 2.0 developers).

Cheers,
Wendell



======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================

Current Thread