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
REPLACEtag substitutes the value of a variable, session variable, list item, built-in value, or counter within the tag. Use theREPLACEtag selectively or you may slow performance, sinceREPLACEmust scan all text in all tags contained within the parentREPLACE. For multiple replacements in non-tag data (for example, content orCDATA), useREPLACEALLfor better performance.For HTML tags, you can use the
REPLACEALLattribute to replace values. For more information about variables, see the CS Developer's Guide.errno
The value of
errnois unchanged.Example
This example substitutes the value of the variable
fileforVariables.filewithinREPLACE.<SETVARNAME="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.