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

Dynamic @action attribute on xforms:submission

From: Erik Bruchez <erik@bruchez.org>
Date: Wed, 19 Apr 2006 10:24:15 -0700
Message-ID: <4446723F.7030802@bruchez.org>
To: Xforms W3C WG <www-forms@w3.org>

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 17:24:33 GMT

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