W3C home > Mailing lists > Public > www-forms-editor@w3.org > September 2007

Errors in 10.15 Iteration of XForms Actions sample

From: <Nick_Van_den_Bleeken@inventivegroup.com>
Date: Tue, 4 Sep 2007 23:03:39 +0200
To: www-forms-editor@w3.org
Cc: "public-forms " <public-forms@w3.org>
Message-ID: <OF533DF250.55C149E6-ONC125734C.0072F039-C125734C.0073AFFA@inventivegroup.com>

Dear WG,

Can it be that there are two errors in the 10.15 Iteration of XForms 
Actions sample[1] :

1) Value of setvalue is relative to ref => add instance('default') to 
value
        <setvalue ref="instance('temps')/accumulator" 
                 value=". + /some/nodes[instance('temps')/counter]"
 
if="boolean-from-string(/some/nodes[instance('temps')/counter]/@selected)"/>

2) If I'm correct /some/nodes[instance('temps')/counter]/@selected always 
selects the first node this should be changed to 
/some/nodes[number(instance('temps')/counter)]/@selected or 
/some/nodes[position() = instance('temps')/counter]/@selected (used two 
times in setvalue action)


Regards,

Nick Van den Bleeken  -  Research & Development
Inventive Designers
Phone: +32 - 3 - 8210170
Fax: +32 - 3 - 8210171
Email: Nick_Van_den_Bleeken@inventivegroup.com
[1] http://www.w3.org/TR/2007/WD-xforms11-20070222/#action-iterated


--------------------------------------------------

Inventive Designers' Email Disclaimer:

http://www.inventivedesigners.com/email-disclaimer
Received on Tuesday, 4 September 2007 21:03:57 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 10 December 2014 20:06:25 UTC