From fa4f217009816b0f0cff9b1b9729a7dcd5939fc5 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Sat, 1 Nov 2003 06:45:21 +0000 Subject: fix bug #125265 about entities breaking exsl:tokenize and exsl:split * libexslt/strings.c: fix bug #125265 about entities breaking exsl:tokenize and exsl:split * tests/exslt/strings/split.1.* tests/exslt/strings/tokenize.1.*: augmented the reression tests with the example from the bug report. Daniel --- tests/exslt/strings/split.1.out | 5 ++++- tests/exslt/strings/split.1.xsl | 5 ++++- tests/exslt/strings/tokenize.1.out | 9 +++++++++ tests/exslt/strings/tokenize.1.xsl | 11 ++++++++++- 4 files changed, 27 insertions(+), 3 deletions(-) (limited to 'tests/exslt/strings') diff --git a/tests/exslt/strings/split.1.out b/tests/exslt/strings/split.1.out index 9166a2cf..1fbb470b 100644 --- a/tests/exslt/strings/split.1.out +++ b/tests/exslt/strings/split.1.out @@ -10,4 +10,7 @@ foobar str:split('-*- hello - world -*-', '-') - * hello world * + * hello world * + + str:split('data &math str;') + data&mathstr; diff --git a/tests/exslt/strings/split.1.xsl b/tests/exslt/strings/split.1.xsl index 42d88d58..7958bd1b 100644 --- a/tests/exslt/strings/split.1.xsl +++ b/tests/exslt/strings/split.1.xsl @@ -17,7 +17,10 @@ str:split('-*- hello - world -*-', '-') + + str:split('data &math str;') + - \ No newline at end of file + diff --git a/tests/exslt/strings/tokenize.1.out b/tests/exslt/strings/tokenize.1.out index a521f4bd..debb2516 100644 --- a/tests/exslt/strings/tokenize.1.out +++ b/tests/exslt/strings/tokenize.1.out @@ -5,4 +5,13 @@ str:tokenize('date math str') datemathstr; + + str:tokenize('This is & strange behavior', ' ') + Thisis&strangebehavior; + + str:tokenize('This is & strange; behavior', ' ') + Thisis&strange;behavior; + + str:tokenize('This is &strange; behavior', ' ') + Thisis&strange;behavior; diff --git a/tests/exslt/strings/tokenize.1.xsl b/tests/exslt/strings/tokenize.1.xsl index 81de97fe..0e801d02 100644 --- a/tests/exslt/strings/tokenize.1.xsl +++ b/tests/exslt/strings/tokenize.1.xsl @@ -11,7 +11,16 @@ str:tokenize('date math str') ; + + str:tokenize('This is & strange behavior', ' ') + ; + + str:tokenize('This is & strange; behavior', ' ') + ; + + str:tokenize('This is &strange; behavior', ' ') + ; - \ No newline at end of file + -- cgit v1.2.3