[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: xsl: Actual output is "" : Expected output is 0
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Wed, 20 Aug 2008 10:28:06 +0100
>>        <xsl:if test="$d">
>>                <xsl:value-of select="$d"/> <!-- Output is
>> nb-discount="" why the output is not 0 as expected-->

Or of course when $d = 0 it's effective boolean value is false() so
the value-of would never be executed....



-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member