You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xap-dev@incubator.apache.org by "Trevor Oldak (JIRA)" <xa...@incubator.apache.org> on 2006/12/19 23:26:20 UTC
[jira] Created: (XAP-217) Xpath: Cannot use id as part of an xpath
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
[jira] Closed: (XAP-217) Xpath: Cannot use id as part of an xpath
Posted by "James Margaris (JIRA)" <xa...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/XAP-217?page=all ]
James Margaris closed XAP-217.
------------------------------
Resolution: Duplicate
Same as 218
> 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