Re: [xml] Question about xmlXPathCastStringToBoolean function
- From: "William M. Brack" <wbrack mmm com hk>
- To: xml gnome org
- Subject: Re: [xml] Question about xmlXPathCastStringToBoolean function
- Date: Mon, 14 Jul 2003 22:53:25 +0800 (HKT)
Hi Matthias,
is the implementation of xmlXPathCastStringToBoolean really
correct?
I at least would have expected this function to return '0' if the
input
is a string like 'false'.
Michael Kays XSLT reference says 'A zero-length string converts to
false;
anything else converts to true.'
I didn't look that up in the spec itself but your expectation seems
to be wrong.
Morus
Reference XPath Spec, para. 4.3: "a string is true if and only if
its length is non-zero"
Bill
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]