Subject: Re: xsl:preceding - only display first value
From: Jeni Tennison <jeni@xxxxxxxxxxxxxxxx>
Date: Tue, 7 Dec 2004 17:17:39 +0000
|
Hi Dmitri,
> I would like to display on the first value if there are repeats
You only have to check either the immediately following or preceding
sibling, not both. Try:
<xsl:choose>
<xsl:when test="preceding-sibling::Step[1]/ProbDefault =
ProbDefault">blank</xsl:when>
<xsl:otherwise>
<xsl:value-of select="ProbDefault" />
</xsl:otherwise>
</xsl:choose>
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
|