Re: [xml] Question about xmlXPathCastStringToBoolean function
- From: Matthias Jung <matthias jung xtradyne com>
- To: Morus Walter <morus walter tanto-xipolis de>
- Cc: xml gnome org
- Subject: Re: [xml] Question about xmlXPathCastStringToBoolean function
- Date: Mon, 14 Jul 2003 17:01:30 +0200
Thanks,
seems like I was a little too enthusiastic. I Already found the
behaviour in the xpath spec, too.
In my eys a a strange behaviour, but good to know that it behaves that way.
Matthias
Morus Walter wrote:
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
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]