W3C home > Mailing lists > Public > public-xformsusers@w3.org > June 2018

Identifying elements

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Thu, 28 Jun 2018 16:36:49 +0200
To: public-xformsusers@w3.org
Message-ID: <op.zlbpjnrqsmjzpq@steven-xps>
We have several examples of text like this:

"The element to which the event is to be dispatched is identified by the  
targetid attribute or otherwise by the targetid child element. If no  
element is so identified, then an xforms-action-error event with an  
error-type of dispatch-target is dispatched."

But there are two cases:

1. Elements
2. Instantiations of elements

For instance:

    <repeat ref="item">
       <trigger id="I" label="+">
          <setvalue ev:event="DOMActivate" ref="." value="0"/>
       </trigger>
    </repeat>

    <trigger label="GO">
       <dispatch ev:event="DOMActivate" targetid="I"/>
    </trigger>

In this case there should be no error, even if the list of items is empty.  
Only if there is no element with id="I" should there be an error.

So we need to differentiate between identifying elements and  
instantiations of elements.

Agreed?

Steven
Received on Thursday, 28 June 2018 14:37:13 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 28 June 2018 14:37:14 UTC