summaryrefslogtreecommitdiff
path: root/tests/exslt/strings/tokenize.1.xsl
blob: 0e801d0241fe273ab56a995df67e8dd6a89e85f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:str="http://exslt.org/strings"
    exclude-result-prefixes="str">

<xsl:template match="/">
<out>;
  str:tokenize('2001-06-03T11:40:23', '-T:')
  <xsl:copy-of select="str:tokenize('2001-06-03T11:40:23', '-T:')"/>;

  str:tokenize('date math str')
  <xsl:copy-of select="str:tokenize('date math str')"/>;

  str:tokenize('This is &amp; strange behavior', ' ')
  <xsl:copy-of select="str:tokenize('This is &amp; strange behavior', ' ')"/>;

  str:tokenize('This is &amp; strange; behavior', ' ')
  <xsl:copy-of select="str:tokenize('This is &amp; strange; behavior', ' ')"/>;

  str:tokenize('This is &amp;strange; behavior', ' ')
  <xsl:copy-of select="str:tokenize('This is &amp;strange; behavior', ' ')"/>;
</out>
</xsl:template>

</xsl:stylesheet>