Modules | Implementer Page: str.split.html 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 Implementations
The following XSLT processors support
Implementations of |
http://www.exslt.org/str/functions/split/index.html last modified 2002-08-20