Xpath: Cannot use id as part of an xpath
----------------------------------------
Key: XAP-217
URL: http://issues.apache.org/jira/browse/XAP-217
Project: XAP
Issue Type: Bug
Components: XModify
Reporter: Trevor Oldak
Priority: Critical
If you have a table:
<table id="messagesTable" height="500px" width="500px"
rowHeight="100px">
<column>
<header text="Topic"/>
</column>
<row><cell text="a"/></row>
</table>
And you call a macro on it to delete all rows:
<macro:macro xmlns:macro="http://openxal.org/core/macro" id="removeRows"
name="removeRows">
<xm:modifications xmlns:xm="http://openxal.org/core/xmodify">
<xm:remove-element select="//table/row"/>
</xm:modifications>
</macro:macro>
The select in the remove-attribute tag cannot be id('messagesTable')/row ,
otherwise it will just delete all of messagesTable.
--
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