W3C home > Mailing lists > Public > xproc-dev@w3.org > September 2011

RE: Options as strings. Blech.

From: <vojtech.toman@emc.com>
Date: Fri, 2 Sep 2011 05:25:24 -0400
To: <xproc-dev@w3.org>
Message-ID: <3799D0FD120AD940B731A37E36DAF3FE33D97E9D0F@MX20A.corp.emc.com>
> From: Geert Josten [mailto:geert.josten@daidalos.nl]
> Sent: Friday, September 02, 2011 11:18 AM
> To: Toman, Vojtech; xproc-dev@w3.org
> Subject: RE: Options as strings. Blech.
> 
> Hi Vojtech,
> 
> I think Norm meant that all those atomic values are cast to strings
> before calculation of the EBV, as they are passed in as option values.
> So 0 is converted to '0', NaN to 'NaN', true() to 'true' and false() to
> 'false'.

Yes, that is correct.

> And all those strings return true() as EBV, while a direct
> evaluation to EBV would give different results..

But I still think that if var is equal to '0' (as the result converting 0 to a string), then the effective boolean value of the expression $var is false() in XPath 2.0.

Regards,
Vojtech


--
Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group
vojtech.toman@emc.com
http://developer.emc.com/xmltech
Received on Friday, 2 September 2011 09:26:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 2 September 2011 09:26:22 GMT