W3C home > Mailing lists > Public > www-forms@w3.org > July 2002

Re: xpath expr for attribute at="xpath expr" on element delete inside a repeat

From: Anthony Tomasic <tomasic@e-xmlmedia.com>
Date: Sun, 21 Jul 2002 11:42:27 -0400
Message-ID: <3D3AD663.3090706@e-xmlmedia.com>
To: duke <mclay@aon.at>
CC: www-forms@w3.org
Here's an example ...

<table>
  <xform:repeat id="repeatConferenceDate" 
nodeset="p:seminar/p:dates/p:dateConference">
    <tr>
      <td>
        <xform:input ref=".">
          <xform:caption class="caption2">Date:</xform:caption>
          <xform:hint>Conference Date</xform:hint>
        </xform:input>
      </td>
      <td>
        <xform:button>
          <xform:caption>Delete</xform:caption>
          <xform:delete nodeset="." at="1" evt:event="xforms:activate"/>
        </xform:button>
      </td>
    </tr>
  </xform:repeat>       
</table>   


duke wrote:

> Hi all!
>
>  
>
> If I want to design a table having the last column containing a delete 
> action (button) for the current (displayed not cursored ) row...
>
> How will the XPathexpr for attribute at on element delete look like 
> (for example at=" position(.)" )  ????
>
>  
>
> Best regards
>
> m
>
>  
>

-- 

Anthony Tomasic <http://www.e-xmlmedia.com/anthony/> 
E-XMLMEDIA <http://www.e-xmlmedia.com> 
254 Yardley Way 
Pittsburgh, PA 15206 
Tel./Fax 877 257 7054 
tomasic@e-xmlmedia.com <mailto:tomasic@e-xmlmedia.com> 
www.e-xmlmedia.com <http://www.e-xmlmedia.com> 
www.e-xmlmedia.fr <http://www.e-xmlmedia.fr> 
Received on Sunday, 21 July 2002 11:37:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:51 GMT