Re: Bugs in XForms 1.1 Test Suite Section "10. XForms Actions"

Sorry, there's a mistake:

On Jan 7, 2009, at 10:33 PM, Ulrich Nicolas Lissé wrote:
> * Test Case 10.18.e
>
> This test case has many wrong XPath expressions in its actions.  
> There are several attributes where expressions start with "/some/ 
> nodes". Given the test instance these expressions evaluate to the  
> empty nodeset. They must be rewritten either as "/root/some/nodes"  
> or as "instance('temps')/some/nodes". Also, the counter must be  
> initially set to 0 to satisfy the condition expressed in the test  
> case. A fixed action block would read:
>
>    <xforms:action ev:event="DOMActivate">
>        <xforms:setvalue ref="instance('temps')/counter" value="0"/>
>        <xforms:setvalue ref="instance('temps')/accumulator"  
> value="0"/>
>        <xforms:action while="instance('temps')/counter &lt;=  
> count(instance('temps')/some/nodes)">
>            <xforms:setvalue ref="instance('temps')/accumulator"
>                value=". + instance('temps')/some/ 
> nodes[instance('temps')/counter]"
>                if="boolean-from-string(instance('temps')/some/ 
> nodes[instance('temps')/counter]/@selected)"/>
>            <xforms:setvalue ref="instance('temps')/counter" value=".  
> + 1"/>
>        </xforms:action>
>    </xforms:action>

Of course the counter must start at 1 in order to serve as a  
positional predicate:

     <xforms:setvalue ref="instance('temps')/counter" value="1"/>

However, the test case must expect 4 as its final value then.

Regards,
Uli.
--
Ulrich Nicolas Lissé

Received on Wednesday, 7 January 2009 21:42:19 UTC