Re: re[xsl] - newbie question - <xsl: when test

Subject: Re: re[xsl] - newbie question - <xsl: when test
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 25 Jan 2001 16:46:23 GMT
> <xsl:when test="id=$lastid">

since you have sorted it you can go:
<xsl:when test="position() &lt; 6">

otherwise you could have gone

<xsl:when test="id - $lastid &lt; 5">

David


	<xsl:element name="A">
		<xsl:attribute name="href">#q<xsl:value-of
select="id"/></xsl:attribute>

That could more simply be written
<A href="#{id}">


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


Current Thread