xsl-list
[Top] [All Lists]

Re: xsl:preceding - only display first value

2004-12-07 10:17:39
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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>