Xmodify: Zombie elements remain across xModify modifications
------------------------------------------------------------

                 Key: XAP-119
                 URL: http://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.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to