This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Tricky one
- From: Kurt George Gjerde <kurt dot gjerde at intermedia dot uib dot no>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Thu, 22 Aug 2002 16:13:36 +0200 (MET DST)
- Subject: Re: [xsl] Tricky one
- Reply-to: xsl-list at lists dot mulberrytech dot com
Your pseudo code would directly translate into this, which should work.
<xsl:choose>
<xsl:when test="/root/abc/def/ghi='FRED'">
<xsl:choose>
<xsl:when test="/root/abc/def/ghival!=''">
<xsl:value-of select="/root/abc/def/ghival"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>0</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:text>0</xsl:text>
</xsl:otherwise>
</xsl:choose>
-Kurt.
__________
kurt george gjerde <kurt.gjerde@intermedia.uib.no>
intermedia uib, university of bergen
Just say .no
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list