RE: Options as strings. Blech.

> 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 UTC