xsl-list
[Top] [All Lists]

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

2006-03-29 16:42:56
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(_at_)mulberrytech(_dot_)com
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
======================================================================


--~------------------------------------------------------------------
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>
--~--