W3C home > Mailing lists > Public > www-forms@w3.org > April 2006

Re: Dynamic @action attribute on xforms:submission

From: Joern Turner <joern.turner@web.de>
Date: Wed, 19 Apr 2006 23:50:44 +0200
Message-ID: <4446B0B4.1070309@web.de>
To: Erik Bruchez <erik@bruchez.org>
CC: Xforms W3C WG <www-forms@w3.org>

Erik Bruchez wrote:
> All,
> With XForms 1.0 and 1.1 draft, it is not possible to dynamically
> specify the @action attribute on xforms:submission. However, in these
> days of REST, it is obviously necessary to be able to do that.
> How have implementors addressed this? The following solutions come to
> mind:
> o Handle @action as an attribute value template, for example:
>   action="http://example.org/app/{instance('my-instance')/image-name}/etc"
>   Benefits: very flexible; XSLT does it so we are not reinventing the
>   wheel.
>   Drawbacks: XForms doesn't use attribute value templates anywhere at
>   the moment. Users will expect that avt will work in other places as
>   well!
Chiba supports AVTs in its latest Core for the reasons you pointed out. 
It's already common and intuitive for many XML authors.

And i agree also that this will stimulate interest of authors to have 
the same in other contexts. Why? Cause it would just be so useful to 
have. I would appreciate if the WG would consider and specify such an 

> o Extra attribute on xforms:submission, such as @action-ref.
>   Benefits: does not introduce avt.
>   Drawbacks: another attribute to remember; requires @action to be no
>   longer required; doesn't scale to other attributes; *-ref attribute
>   names are not nice-looking ;-)
> Any other ideas or suggestions?
> -Erik
Received on Wednesday, 19 April 2006 21:50:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:17 UTC