[xsl] Fixed that xsl:choose issue.

Subject: [xsl] Fixed that xsl:choose issue.
From: Ben Trafford <ben@xxxxxxxxxxxxx>
Date: Mon, 05 May 2003 22:14:19 -0400

I fixed the previous problem I was having, like so:


<xsl:template match="entry.link">

		<xsl:choose>		
			<xsl:when test="not(preceding-sibling::entry.link)"> <!--   -->
				SEE ALSO: <i><a href="#{@to.entry}"><xsl:apply-templates/></a>; </i>
			</xsl:when>

<xsl:when test="preceding-sibling::entry.link and not(following-sibling::entry.link)">
<i><a href="#{@to.entry}"><xsl:apply-templates/></a>. </i>
</xsl:when>


			<xsl:otherwise>
				<i><a href="#{@to.entry}"><xsl:apply-templates/></a>; </i>
			</xsl:otherwise>
		</xsl:choose>
		
  	</xsl:template>

Just thought y'all might be interested. Thanks for the help!

--->Ben


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



Current Thread