diff options
Diffstat (limited to 'tests/exslt/strings/tokenize.2.xsl')
-rw-r--r-- | tests/exslt/strings/tokenize.2.xsl | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/exslt/strings/tokenize.2.xsl b/tests/exslt/strings/tokenize.2.xsl new file mode 100644 index 00000000..c60a6fe1 --- /dev/null +++ b/tests/exslt/strings/tokenize.2.xsl @@ -0,0 +1,13 @@ +<?xml version="1.0"?> +<xsl:stylesheet version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:str="http://exslt.org/strings" + extension-element-prefixes="str"> + +<xsl:template match="/"> +<xsl:for-each select="str:tokenize('This is strange behavior', ' ')" > + <tok><xsl:value-of select="."/></tok> +</xsl:for-each> +</xsl:template> + +</xsl:stylesheet> |