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

submission/@ref

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Wed, 14 Dec 2016 15:40:30 +0100
To: XForms <public-xformsusers@w3.org>
Message-ID: <op.ysgtpskksmjzpq@steven-aspire-s7>
https://www.w3.org/community/xformsusers/wiki/XForms_2.0#The_submission_Element

Ref on submission was described as a "binding expression":

"Author-optional selector binding expression enabling submission of a  
portion of the instance data. The selected node, and all descendants, are  
selected for submission. The default value is "/"."

Submission processing says:

"The binding attributes of submission are evaluated; if the result is the  
empty sequence or an item other than an element or an instance document  
root node, submission fails with no-data."

This means that if I have

	<instance><data><a/><a/><a/></data>
	<submission ref="a"/>

that it will fail with "no-data". Maybe this is a left-over from it being  
called "ref", and that that meant it was automatically a single-node  
binding.

Does anyone have any objection to describing it as a Single Item Binding?

Steven
Received on Wednesday, 14 December 2016 14:41:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:47 UTC