Modules | Version: 1 Function Syntaxnode-set str:split(string, string?) Template Syntax<xsl:call-template name="str:split"> <xsl:with-param name="string" select="string" /> <xsl:with-param name="pattern" select="string" />? </xsl:call-template>
The The first argument is the string to be split. The second argument is a pattern string. The string given by the first argument is split at any occurrence of this pattern. For example: str:split('a, simple, list', ', ') Gives the node set consisting of: <token>a</token> <token>simple</token> <token>list</token>
If the second argument is omitted, the default is the string str:split('date math str') Gives the node set consisting of: <token>date</token> <token>math</token> <token>str</token>
If the second argument is an empty string, the function returns a set of str:split('foo', '') Gives the node set consisting of: <token>f</token> <token>o</token> <token>o</token>
The template version of this function returns a result tree fragment consisting of a number of An implementation of this extension function in the EXSLT str namespace must conform to the behaviour described in this document. Implementations
Built-in support for
The following implementations of
Change HistorySubmitted: 2001-10-15
|
http://www.exslt.org/str/functions/split/str.split.1.html last modified 2002-08-20