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

Re: conditional send

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Thu, 02 Nov 2006 10:52:40 +0100
Message-ID: <4549BFE8.6030407@orbeon.com>
To: www-forms <www-forms@w3.org>


 > does anyone know how to do a conditional send in an xforms-ready
 > event handler?

XForms 1.1 adds support for conditional and repeated actions. Your
example then becomes:

   <xf:send if="instance('formdefinition')/workflow/jbpm/@taskinstanceid 
!= ''"

If your XForms engine already supports that 1.1 feature, then you are
all set.

 > While I'm here I discovered what I would consider some inconsistencies
 > in the xforms spec today.
 > with xf:load you can bind to an instance node in order to load a new
 > page. but the same bind/ref attributes cant be used in the same way for
 > a submission element. I really wanted a way to dynamically choose the
 > url and params that a submision element would submit to (I wanted to
 > submit the xml to that location) but couldnt find a way to do it. If the
 > attributes were a bit more consistent in how they are used in the
 > various elements then I think xforms would be a whole bunch easier to 

Another good point, and luckily the XForms Working Group has already
worked it out for XForms 1.1, albeit not by harmonizing the attributes
between <xforms:send> and <xforms:load>, and I think this is due to
the fact that <xforms:submission> is quite a different beast from
<xforms:load>. Anyway, XForms 1.1 adds support for dynamically
controlling the submission URI with a new <xforms:resource> child
element of <xforms:submission>. In addition, some implementations
support Attribute Value Templates (AVTs) on the @action attribute of


Orbeon - XForms Everywhere:
Received on Thursday, 2 November 2006 09:55:10 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:54 UTC