Request for enhancement: allow single-node binding attributes on `xf:action`

I would like to request that the content model of `xf:action`[0] be
augmented to include a context attribute that would have the same
behavior as the context attribute on `xf:insert` and `xf:delete`.  This
would allow XForms authors to specify the XPath context for components
(i.e. descendants) of such actions.

For example, an author might want to specify an action, that is bound to
a model, with several components that each use a common XPath context.
This might look like the following (assuming the `xf` prefix is
correctly bound to the XForms namespace):

  <xf:model id="m">
  <!-- ... -->
    <xf:action ev:event="someEvent"
context="some/context/location[condition]">
      <xf:delete nodeset="@data"/>
      <xf:setvalue ref="@missing">yes</xf:setvalue>
    </xf:action>
  </xf:model>

According to the current spec, however, both the above `xf:delete` and
the `xf:setvalue` would need to provide the entire XPath context, which
could require redundant computation of potentially elaborate XPath
statements and would be more bug-prone and difficult to read.  Note that
the example in the specification for the `xf:delete`[2] action has a
similar redundancy.

[0] http://www.w3.org/TR/2006/WD-xforms11-20061212/#action-action

[1]
http://www.w3.org/TR/2006/WD-xforms11-20061212/#structure-attrs-single-n
ode

[2] http://www.w3.org/TR/2006/WD-xforms11-20061212/#action-delete

Take care,

    John L. Clark  |  Systems Analyst
                   |  Cardio-Thoracic Surgery Research
 Cleveland Clinic  |  9500 Euclid Ave.   |  Cleveland, OH 44195
                   |  (216) 445-6011

===================================




Cleveland Clinic is ranked one of the top 3 hospitals in
America by U.S.News & World Report. Visit us online at
http://www.clevelandclinic.org for a complete listing of
our services, staff and locations.


Confidentiality Note:  This message is intended for use
only by the individual or entity to which it is addressed
and may contain information that is privileged,
confidential, and exempt from disclosure under applicable
law.  If the reader of this message is not the intended
recipient or the employee or agent responsible for
delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If
you have received this communication in error,  please
contact the sender immediately and destroy the material in
its entirety, whether electronic or hard copy.  Thank you.

Received on Monday, 22 January 2007 18:47:23 UTC