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 Sites Developer's Guide.Error Numbers
There are no possible
errnofor this tag.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 > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.