This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XSLT number() problem
- From: Mike Brown <mike at skew dot org>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 20 Jun 2002 02:23:54 -0600 (MDT)
- Subject: Re: [xsl] XSLT number() problem
- Reply-to: xsl-list at lists dot mulberrytech dot com
Andrew Welch wrote:
> Is there a reason why number(0) returns false?
It doesn't, it returns the number 0, but when you put it in an xsl:if or
xsl:when test, you're really asking for boolean(number(0)), which returns
false. See the XPath spec under Boolean Functions.
- Mike
____________________________________________________________________________
mike j. brown | xml/xslt: http://skew.org/xml/
denver/boulder, colorado, usa | resume: http://skew.org/~mike/resume/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list