Modules | Version: 1 Function Syntaxnode-set str:tokenize(string, string?) Template Syntax<xsl:call-template name="str:tokenize"> <xsl:with-param name="string" select="string" /> <xsl:with-param name="delimiters" select="string" />? </xsl:call-template>
The The first argument is the string to be tokenized. The second argument is a string consisting of a number of characters. Each character in this string is taken as a delimiting character. The string given by the first argument is split at any occurrence of any of these characters. For example: str:tokenize('2001-06-03T11:40:23', '-T:') Gives the node set consisting of: <token>2001</token> <token>06</token> <token>03</token> <token>11</token> <token>40</token> <token>23</token>
If the second argument is omitted, the default is the string str:tokenize('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:tokenize('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
Use CasesUse Case Package: str.tokenize.use-cases.zip
The following use cases illustrate the functionality of
Change HistorySubmitted: 2001-06-03
|
http://www.exslt.org/str/functions/tokenize/str.tokenize.html last modified 2002-11-12