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:

        <data xmlns="">

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

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

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

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.

Received on Friday, 11 August 2006 21:59:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:18 UTC