Identifying elements

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