diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-04-30 20:47:47 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-04-30 20:47:47 +0000 |
commit | 4f5120741e65afb08bb6d97f1391a43967d396c0 (patch) | |
tree | 605ca233fdaca19ac2fd8ac86f2d2358e674d290 /tests/exslt/strings | |
parent | 95cc2c1cef534c378ff10b28d61eea3d59a6f6de (diff) | |
download | libxslt-4f5120741e65afb08bb6d97f1391a43967d396c0.tar.gz libxslt-4f5120741e65afb08bb6d97f1391a43967d396c0.tar.bz2 libxslt-4f5120741e65afb08bb6d97f1391a43967d396c0.zip |
cleaning up Result Value Tree handling fixed a pair of implementations.
* libxslt/transform.c libxslt/variables.c libxslt/xsltInternals.h:
cleaning up Result Value Tree handling
* libexslt/functions.c libexslt/strings.c: fixed a pair of
implementations.
* tests/exslt/strings/Makefile.am tests/exslt/strings/tokenize.2.*:
added Mark Vakoc test combining for-each and exslt:tokenize
Daniel
Diffstat (limited to 'tests/exslt/strings')
-rw-r--r-- | tests/exslt/strings/Makefile.am | 3 | ||||
-rw-r--r-- | tests/exslt/strings/tokenize.2.out | 2 | ||||
-rw-r--r-- | tests/exslt/strings/tokenize.2.xml | 1 | ||||
-rw-r--r-- | tests/exslt/strings/tokenize.2.xsl | 13 |
4 files changed, 18 insertions, 1 deletions
diff --git a/tests/exslt/strings/Makefile.am b/tests/exslt/strings/Makefile.am index 5bdb16ec..78732c17 100644 --- a/tests/exslt/strings/Makefile.am +++ b/tests/exslt/strings/Makefile.am @@ -4,7 +4,8 @@ $(top_builddir)/xsltproc/xsltproc: @(cd ../../../xsltproc ; $(MAKE) xsltproc) EXTRA_DIST = \ - tokenize.1.xml tokenize.1.xsl tokenize.1.out + tokenize.1.xml tokenize.1.xsl tokenize.1.out \ + tokenize.2.xml tokenize.2.xsl tokenize.2.out all: diff --git a/tests/exslt/strings/tokenize.2.out b/tests/exslt/strings/tokenize.2.out new file mode 100644 index 00000000..32bf7e12 --- /dev/null +++ b/tests/exslt/strings/tokenize.2.out @@ -0,0 +1,2 @@ +<?xml version="1.0"?> +<tok>This</tok><tok>is</tok><tok>strange</tok><tok>behavior</tok> diff --git a/tests/exslt/strings/tokenize.2.xml b/tests/exslt/strings/tokenize.2.xml new file mode 100644 index 00000000..69d62f2c --- /dev/null +++ b/tests/exslt/strings/tokenize.2.xml @@ -0,0 +1 @@ +<doc/> 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> |