Re: [xsl] Grouping by attribute

Subject: Re: [xsl] Grouping by attribute
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Thu, 22 Oct 2009 17:25:40 +0200
Jostein Austvik Jacobsen wrote:

		<xsl:for-each-group select="./node()" group-starting-with="p | quote
| illustration">
			<xsl:choose>
				<xsl:when test="(name(current-group()[1])='p') or
(name(current-group()[1])='quote'))">

Such tests are better written as <xsl:when test="self::p or self::quote">

--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Current Thread