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

send can violate bind/@constraint

From: Klotz, Leigh <Leigh.Klotz@xerox.com>
Date: Fri, 11 Aug 2006 14:58:19 -0700
Message-ID: <E254B0A7E0268949ABFE5EA97B7D0CF40219ED72@usa7061ms01.na.xerox.net>
To: <www-forms@w3.org>

Consider the following fragment:

      <xf:instance>
        <data xmlns="">
          <offset>0</offset>
        </data>
      </xf:instance>

      <xf:bind nodeset="offset" constraint=". &gt;= 0" />

      <xf:trigger>
        <xf:label>Decrement Offset and Submit</xf:label>
        <xf:action ev:event="DOMActivate">
          <xf:setvalue ref="offset" value=". - 1" />
          <xf:send submission="test" />
        </xf:action>
      </xf:trigger>

Does the xf:bind/@constraint prevent submission if the constraint is
violated?

See http://xformstest.org/2006/08/klotz/constraint-send.xhtml and press
"Decrement Offset and Submit" and see if you get back a -1.


I recently encountered two different XForms processors that do this.
While I think the behavior is incorrect, it may be that it is emergent
from the events described in the spec.

Leigh.
Received on Friday, 11 August 2006 21:59:26 GMT

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