- From: Klotz, Leigh <Leigh.Klotz@xerox.com>
- Date: Fri, 11 Aug 2006 14:58:19 -0700
- To: <www-forms@w3.org>
Consider the following fragment:
<xf:instance>
<data xmlns="">
<offset>0</offset>
</data>
</xf:instance>
<xf:bind nodeset="offset" constraint=". >= 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 UTC