W3C home > Mailing lists > Public > public-xformsusers@w3.org > October 2016

@value: Synthesis

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Wed, 12 Oct 2016 11:07:21 +0200
To: "public-xformsusers@w3.org" <public-xformsusers@w3.org>, "Steven Pemberton" <steven.pemberton@cwi.nl>
Message-ID: <op.yo7qajlesmjzpq@steven-aspire-s7>
OK, I have reduced all the uses of @value to a small number of cases  
(modulo where the text is inconsistent/needs improving but the intent is  
obvious).

There are three properties: type (either string or ANY), evaluation  
context (either in-scope, result of binding, or value is overridden by  
binding), whether it overrides element content.

Discussion at the end.

===================

BASIC CASE: Returns a string. Evaluated in the in-scope context. Overrides  
element content.

(D=deprecated)

D submission/resource
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_resource_Element

D submission/method
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_method_Element

submission/header
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_header_Element

submission/header/name
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_name_Element

submission/header/value
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_value_Element

D toggle/case
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_case_Element_Child_of_the_toggle_Element

D setfocus/control
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_control_Element_Child_of_the_setfocus_Element

D dispatch/name
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_name_Child_Element

D dispatch/targetid
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_targetid_Child_Element

D dispatch/delay
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_delay_Child_Element

D load/resource
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_resource_Element_child_of_load

===================

CASE: Returns a string. Node binding affects context. Overrides element  
content.

setvalue
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_setvalue_Element

===================

CASE: Returns a string. Node binding affects context. No element content.

output
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_output_Element

output/mediatype
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_mediatype_Element_.28for_output.29

===================

CASE: Returns a string. Node binding overrides. Overrides element content.

item/value
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_value_Element_2

===================

CASE: Returns a string. Node binding overrides. No element content.

item
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_item_Element

===================

CASE: Returns any type. Evaluated in the in-scope context(?). Overrides  
element content. Unspec if evaluation fails.

action/param
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_param_Element_Child_of_the_action_Element

===================

CASE: Returns any type. Evaluated in the in-scope context(?). Overrides  
element content. Unspec if evaluation fails.

dispatch/property
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_property_Child_Element

===================

CASE: Returns any type. Evaluated in the in-scope context(?). No element  
content. Unspec if evaluation fails.

function/result
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_result_element

===================


Not yet added

itemset
https://www.w3.org/community/xformsusers/wiki/index.php?title=XForms_2.0#The_itemset_Element



DISCUSSION POINTS

Deprecate submission/header/name, submission/header/value?

What happens if the evaluation of @value that has type ANY fails?

Generalise more?:

* Returns a string or any type as specified
* Evaluated in in-scope context, unless there is a binding, and then it  
uses that context.
* If the element can have PCDATA content, then @value overrides it
* If evaluation fails, for strings the empty string is used; for ANY ???  
(decision)

Steven
Received on Wednesday, 12 October 2016 09:07:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 12 October 2016 09:07:58 UTC