RE: is XForms suitable for my problem ?

Hi,
 
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"/>
            <group><trigger>  
                 <label>delete</label>
                 <delete ev:event="DOMActivate" nodeset="section"
at="para/ulink"/>
       </trigger></group>
    </repeat>
  </repeat>
</repeat>
 
With instance data like this :
 
<article>
    <section>
        <section>
            <section>
                <para><ulink url="doc1.pdf">document 1</ulink></para>
                <para><ulink url="doc2.pdf">document 2</ulink></para>
            </section>
            <section> 
                <para><ulink url="doc3.pdf">document 3</ulink></para>
            </section>
        </section>
    </section>
<:article>
 
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