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

Re: Dynamic @action attribute on xforms:submission

From: David Landwehr <david.landwehr@solidapp.com>
Date: Wed, 19 Apr 2006 20:04:41 +0200
Message-Id: <0EEF0BDA-BCAE-4A4A-8A7F-73B2DDCEDBFF@solidapp.com>
Cc: Xforms W3C WG <www-forms@w3.org>
To: Erik Bruchez <erik@bruchez.org>

Hi,

I have implemented the ATV method but I also ATV for many of the  
XForms attributes so the @action is just one of them.

Best regards,
David


Den Apr 19, 2006 kl. 7:24 PM skrev Erik Bruchez:

>
> 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!
>
> 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 18:31:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:03 GMT