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: re - newbie question - <xsl: when test



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


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