This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: re - newbie question - <xsl: when test
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: re[xsl] - newbie question - <xsl: when test
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Thu, 25 Jan 2001 16:46:23 GMT
- References: <FBCE39CE4112D411AB3C00D0B7445969CF43EF@mailpost.syzygy.net>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> <xsl:when test="id=$lastid">
since you have sorted it you can go:
<xsl:when test="position() < 6">
otherwise you could have gone
<xsl:when test="id - $lastid < 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