Ejen Logo
 
   <remove>


Description
Remove node allows to suppress XML sub-trees in the global, in memory, XML tree. This is usefull if you merge large XML trees into the current node and want to save memory after having been using them.
 
...
<foreach select="doc/item">
  <source merge="true" uri="{@big-include}.xml"/>
  <template save="{@class-name}.java" uri="java.xsl"/>
  <remove select="./*"/>
</foreach>
...

Here, each doc/item node has a big-include attribute that is used in order to merge a large XML file in. When we have finished with the template node, we do not need anymore to keep this sub-tree in memory and we use a remove node to free up memory.

Attribute Summary
 
NameDefault ValueOptionalAccepted Values
select true 

Attribute Detail
 
select
any valid XPath expression. any valid XPath expression (either absolute or relative to the current node). value of the parameter (any valid XPath expression). any valid XPath expression. Result of this expression evaluation will be placed as the current value of the variable. If this attribute is not set, result of the transformation made in child nodes will be the value of the variable.

Children
 
No.


SourceForge.net Logo