STRING expressions return text strings. They are
used to manipulate non-numeric data. The
STRING REPLACE expression returns a string where sections
of the string have been replaced by another string.
The replacement occurs by taking an input string from a
sub-expression, and replacing all occurrences of a sub-string specified by a
TARGET expression node, with a replacement sub-string,
specified by a
REPLACEMENT expression node. The sub-expression may be
a
PROPERTY or a
STRING expression.
See the
EXPRESSION element for DTD and attribute information.
This example replaces "cwd" in paths with the current working directory.
<EXPRESSION TYPE="VOID" NAME="UPDATE">
<EXPRNODE NAME="PROP_NAME" VALUE="Endeca.Document.Body"/>
<EXPRESSION TYPE="STRING" NAME="REPLACE">
<EXPRNODE NAME="TARGET" VALUE="[cwd]"/>
<EXPRNODE NAME="REPLACEMENT" VALUE="&cwd;"/>
<EXPRESSION TYPE="PROPERTY" NAME="IDENTITY">
<EXPRNODE NAME="PROP_NAME" VALUE="Endeca.Document.Body"/>
</EXPRESSION>
</EXPRESSION>
</EXPRESSION>
