[ 
https://issues.apache.org/jira/browse/XAP-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Trevor Oldak closed XAP-119.
----------------------------

    Resolution: Fixed

> Xmodify: Zombie elements remain across xModify modifications
> ------------------------------------------------------------
>
>                 Key: XAP-119
>                 URL: https://issues.apache.org/jira/browse/XAP-119
>             Project: XAP
>          Issue Type: Bug
>          Components: XModify
>            Reporter: Trevor Oldak
>
> 1) Make a small table, with 2 rows. Set the rows' type to data. ID the table 
> 'myTable'
> 2) Process this xal file:
> <xal xmlns="http://www.openxal.org/xal"; 
> xmlns:xal="http://www.openxal.org/xal";>
>     
>     <xm:modifications xmlns:xm="http://www.openxal.org/xmodify";>
>             <xm:remove-element select="//[EMAIL PROTECTED]'data']"/>
>     </xm:modifications>
> </xal>
> This file should remove all the rows in a table that have 'type' set to 'data'
> 3)  Process this xal file:
> <xal xmlns="http://www.openxal.org/xal"; 
> xmlns:xal="http://www.openxal.org/xal";>
> <xm:modifications xmlns:xm="http://www.openxal.org/xmodify";>
>       <xm:append select="id('myTable')">
>                               <row xmlns:xal="http://www.openxal.org/xal"; 
> type="data">
> (row data)
>                       </row>
>                       </xm:append>
>               <xm:append select="id('myTable')">
>               <row xmlns:xal="http://www.openxal.org/xal"; type="data">
> (row data)
>                       </row>
>               </xm:append>
>                       <xm:append select="id('myTable')">
>               <row xmlns:xal="http://www.openxal.org/xal"; type="data">
> (row data)
>                       </row>
>       </xm:append>
> </xm:modifications>
> </xal>
> The multiple appends are due to a different bug.
> The file should add 3 rows, but it adds 5, because it saved the first two 
> rows that were added in the previous xmodify statement.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to