W3C home > Mailing lists > Public > www-forms@w3.org > April 2005

RE: is XForms suitable for my problem ?

From: LEBUR Guillaume <guillaume.lebur@justice.fr>
Date: Tue, 5 Apr 2005 15:14:49 +0200
Message-ID: <B558C767F14A16409AF737302313F1C903364E@mail-enm-bdx.enm.justice.fr>
To: <www-forms@w3.org>
I'm having a hard time trying to understand  how to use XPath in XForms
actions. Especially when it comes to performing an action nested in a
<repeat> :
<repeat nodeset="/article/section"> 
   <repeat nodeset="section"> 
    <repeat nodeset="section">
            <output ref="para/ulink"/>
                 <delete ev:event="DOMActivate" nodeset="section"
With instance data like this :
                <para><ulink url="doc1.pdf">document 1</ulink></para>
                <para><ulink url="doc2.pdf">document 2</ulink></para>
                <para><ulink url="doc3.pdf">document 3</ulink></para>
In front of each document title (ulink), there must be a button to
delete this document.
I don't know what to put in the nodeset and at attributes of the
<delete> action. Is nodeset compulsory since we are inside a <repeat>
element ?
Thanks for your help.
Guillaume Lebur
Received on Tuesday, 5 April 2005 13:15:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:15 UTC