W3C home > Mailing lists > Public > public-forms@w3.org > January 2009

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

From: Ulrich Nicolas Lissť <unl@dreamlab.net>
Date: Wed, 7 Jan 2009 22:41:37 +0100
Cc: Forms WG <public-forms@w3.org>
Message-Id: <13992057-A11E-454F-BE8E-C70407CCEF7A@dreamlab.net>
To: Ulrich Nicolas Lissť <unl@dreamlab.net>

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

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:49 UTC