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