Re: [xsl] Using Position() to display results in groups

Subject: Re: [xsl] Using Position() to display results in groups
From: Gavin Corfield <gavin@xxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Aug 2001 13:12:18 +0800
> <card id="firstpage">
> (results 1-10)
> <a href="#secondpage">next10</a>
> </card>
> 
> <card id="secondpage">
> (results 11-20)
> <a href="#thirdpage">
> </a>
> 
> 

HiAndrew,

Use xsl:choose:

<xsl:choose>
	<xsl:when test="position() &lt; 11>
		blah
	</xsl:when>
	<xsl:when test="position() &lt; 21>
		blah
	</xsl:when>
</xsl:choose>

according to the spec the processor will select the first 'when'
condition matched according to document order.

gavin

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


Current Thread