Subject: Re: re - 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() < 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
|