Modules | Version: 1 Function Syntaxnode-set str:replace(string, object, object) Template Syntax<xsl:call-template name="str:replace"> <xsl:with-param name="string" select="string" /> <xsl:with-param name="search" select="object" /> <xsl:with-param name="replace" select="object" /> </xsl:call-template>
The The first argument gives the string within which strings are to be replaced.
The second argument is an object which specifies a search string list. If the second argument is a node set, then the search string list consists of the result of converting each of the nodes in the node set to a string as by the
The third argument is an object which specifies a replacement node list. If the third argument is a node set, then the replacement node list consists of the nodes in the node set in document order. If the third argument is not a node set, then the replacement node list consists of a single text node whose string value is the same as the result of converting the third argument to a string as by the It is an error if any of the nodes in the replacement node list are attribute nodes or namespace nodes. An XSLT processor may recover from this error by treating these nodes as text nodes with an empty string value.
The The longest search strings are replaced first. If a search string is empty, then the equivalently positioned replacement node is inserted between every character in the string. An implementation of this extension function in the EXSLT str namespace must conform to the behaviour described in this document. ImplementationsNo XSLT processors that we know of have built-in support for
The following implementations of
Change HistorySubmitted: 2001-06-08
|
http://www.exslt.org/str/functions/replace/str.replace.html last modified 2002-11-12