Home > Contents > Index >
REPLACE
Substitutes the value of a variable, session variable, list item, built-in value, or counter within
REPLACE
.Syntax
<REPLACE STR="STRING_VAL
"> </REPLACE>Parameters
STR (required)
- Value of variable, session variable, list item, built-in value or counter to substitute.
Description
The
REPLACE
tag substitutes the value of a variable, session variable, list item, built-in value, or counter within the tag. Use theREPLACE
tag selectively or you may slow performance, sinceREPLACE
must scan all text in all tags contained within the parentREPLACE
. For multiple replacements in non-tag data (for example, content orCDATA
), useREPLACEALL
for better performance.For HTML tags, you can use the
REPLACEALL
attribute to replace values. For more information about variables, see the CS Developer's Guide.errno
The value of
errno
is unchanged.Example
This example substitutes the value of the variable
file
forVariables.file
withinREPLACE
.<SETVAR
NAME="file" VALUE="somefile.html"/>
<REPLACE STR="Variables.file"> <a href="http://someserver/somefolder/Variables.file"> See this story.</a> </REPLACE>See Also
Home > Contents > Index > ![]()
FatWire XML Tag Reference
Copyright 2005,2006,2007 by FatWire Software
All rights reserved.