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

Question about MIP childs of binds (XForms 1.2 : Unified evaluation context)

From: <Nick_Van_den_Bleeken@inventivegroup.com>
Date: Tue, 26 Feb 2008 12:01:30 +0100
To: John Boyer <boyerj@ca.ibm.com>, XForms <public-forms@w3c.org>
Message-ID: <OFC72BEA7E.7BCB5B81-ONC12573FB.003827D7-C12573FB.003C8D97@inventivegroup.com>

While working on my action items, and more specific Unified evaluation 
context(1).  I've re-read your e-mail (2) related to this action item. I 
completely agree with most of your remarks. But I'm not convinced by your 
proposal to specify "that the element relevant could 
be defined as automatically applying boolean-from-string to the string 
result", because:

1) XForms 1.0 and 1.1 define that boolean() is used to convert the node 
set to a boolean for the MIPs
2) Other w3c specs use the same strategy as XForms 1.0 and 1.1 to come to 
an 'effective boolean' : XPath (see (3) (4) and (5) for places where 
boolean() is used to convert a node set to a boolean), XSLT, ...
3) When we will use boolean-from-string() instead of boolean() it becomes 
really counter intuitive to check for existence of a node example : 
if(<xpath-expr>, 'true', 'false')


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/MarkUp/Forms/wiki/Unified_evaluation_context
(2) http://lists.w3.org/Archives/Public/public-forms/2008Feb/0022.html
(3) http://www.w3.org/TR/xpath#section-Function-Calls


Inventive Designers' Email Disclaimer:

Received on Tuesday, 26 February 2008 11:02:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:48:28 UTC