W3C home > Mailing lists > Public > www-forms-editor@w3.org > July 2007

Re: [LC] 11.6 The resource Element and Attribute (PR#77)

From: John Boyer <xforms-issues@mn.aptest.com>
Date: Thu, 26 Jul 2007 12:43:29 -0500
Message-Id: <200707261743.l6QHhTH0020133@htmlwg.mn.aptest.com>
To: Steven.Pemberton@cwi.nl
CC: www-forms-editor@w3.org

Hi Steven,

The Forms WG agrees that it is confusing and 'overkill' to have both an action
and a resource attribute.

The resolution in this case was to clearly mark the action attribute as
deprecated (supported, but not the preferred attribute to use anymore). There
are two reasons for this.  First, the term 'action' in XForms is already used to
describe event handlers, so discussions of submission have been confusing
because one can also have actions that handle various submission events. 
Switching to a resource attribute clears up that ambiguity.  Second, the WG
decided to consistently use the attribute name 'resource' as it is used
elsewhere in XForms (the load action and the instance element).

Regarding the suggestion to let resource be an XPath expression since we already
have action for the literal case, the above resolution clarifies that the intent
is to have resource be used in lieu of action.  For consistency with the use of
the resource attribute in the load action and the instance element, the datatype
must be an xsd:anyURI.  Also, for consistency with how XPath expressions are
provided to other attributes in XForms 1.1, the resource child element is

Please see the editor's draft of the specification available from the Forms WG
home page and let us know if you have any further concerns about this issue.

Thank you,
John Boyer

> http://www.w3.org/TR/xforms11/#submit-resource
> "The URI to be used by the submission can be specified with either the
> value attribute or the string content of the resource element."
> So we now have the following equivalent possibilities:
>       <submit action="http://examples.org/search"/>
>       <submit resource="http://examples.org/search"/>
>       <submit><resource value="'http://examples.org/search'"/></submit>
>       <submit><resource>http://examples.org/search</resource></submit>
> Isn't this overkill?
> Proposal:
> 	  Keep @action for the literal case
> 	  Use @resource as a value attribute
> 	      <submit resource="concat('http://', site, '/', command)"/>
> 	  Drop the resource child.
Received on Thursday, 26 July 2007 17:48:27 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:25:12 UTC