W3C home > Mailing lists > Public > public-forms@w3.org > September 2008

Comment about telecon item 'We should automate boolean-from-string() on the boolean MIPs (relevant, readonly, constraint)'

From: <Nick_Van_den_Bleeken@inventivegroup.com>
Date: Mon, 15 Sep 2008 08:51:33 +0200
To: public-forms@w3.org
Message-ID: <OFD5BB1465.094ED33A-ONC12574C5.00249F5C-C12574C5.0025AE58@inventivegroup.com>
All,

I think that the Resolution 2008-09-10.1'For future versions, we change 
MIPs that accept boolean values to say that they use the XPath boolean 
function to convert the value to boolean, except if the value is the 
string "false" in which case we treat it as a boolean false.' is a really 
good resolution if you look forward to incorporating XPath 2.0 in XForms.

If we incorporated XPath 2.0 we can say that the MIPs that are candidates 
for accepting an xs:boolean  (readonly, required, valid) expect an 
xs:boolean and then the casting from string to to a boolean in XPath 2.0 
will behave like 'Resolution 2008-09-10.1' says. We should of corse change 
the wording from using the boolean function for doing the conversion to 
using casting to do the conversion. See [1] for the difference between 
fn:boolean and 'cast as xs:boolean' in XPath 2.0


Regards,

Nick Van den Bleeken  -  Research & Development Manager
Inventive Designers
Phone: +32 - 3 - 8210170
Fax: +32 - 3 - 8210171
Email: Nick_Van_den_Bleeken@inventivegroup.com

[1] http://www.w3.org/TR/xpath-functions/#func-boolean
Inventive Designers' Email Disclaimer:   http://www.inventivedesigners.com/email-disclaimer =
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
--
Received on Monday, 15 September 2008 06:52:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:49 UTC