This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Using Position() to display results in groups



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]