Re: [xsl] An XSL:Choose Issue.

Subject: Re: [xsl] An XSL:Choose Issue.
From: Mike Brown <mike@xxxxxxxx>
Date: Mon, 5 May 2003 17:21:17 -0600 (MDT)
Ben Trafford wrote:
> 	<xsl:template match="entry.link">
> 		<xsl:choose>
> 			<xsl:when test="position() = 1">
> 				SEE ALSO: <i><a href="#{@to.entry}"><xsl:apply-templates/></a>; </i>
> 			</xsl:when>
> 			<xsl:when test="position() = last">

last is a function. position() = last()

> 				<i><a href="#{@to.entry}"><xsl:apply-templates/></a>.</i>	
> 			</xsl:when>
> 			<xsl:when test="(not(position() = 1)) or (not(position() = last))" >

instead of xsl:when you want xsl:otherwise (no test or anything)


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


Current Thread