This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Using Position() to display results in groups
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Using Position() to display results in groups
- From: Gavin Corfield <gavin at twobluedots dot com dot au>
- Date: Mon, 20 Aug 2001 13:12:18 +0800
- Organization: two blue dots
- References: <POEMLHLHPPILCJKHBIAAEEJICEAA.andrew@thebristoldirectory.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> <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() < 11>
blah
</xsl:when>
<xsl:when test="position() < 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