From 16130f7179d6c6b7de782422fa28b53846493bc7 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Thu, 20 Nov 2003 10:02:08 +0000 Subject: [PATCH] fixed an error from #120684 patch raised in #127450 added tests to the * libxslt/keys.c: fixed an error from #120684 patch raised in #127450 * tests/docs/Makefile.am tests/docs/bug-134.xml tests/general/Makefile.am tests/docs/bug-134*: added tests to the regression suite for bug #127450. Daniel --- ChangeLog | 12 ++++++++++-- libxslt/keys.c | 4 ++-- tests/docs/Makefile.am | 1 + tests/docs/bug-134.xml | 5 +++++ tests/general/Makefile.am | 1 + tests/general/bug-134.out | 2 ++ tests/general/bug-134.xsl | 12 ++++++++++++ 7 files changed, 33 insertions(+), 4 deletions(-) create mode 100644 tests/docs/bug-134.xml create mode 100644 tests/general/bug-134.out create mode 100644 tests/general/bug-134.xsl diff --git a/ChangeLog b/ChangeLog index 869523f..8db6d45 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,9 +1,17 @@ +Thu Nov 20 10:59:48 CET 2003 Daniel Veillard + + * libxslt/keys.c: fixed an error from #120684 patch raised in + #127450 + * tests/docs/Makefile.am tests/docs/bug-134.xml + tests/general/Makefile.am tests/docs/bug-134*: added tests + to the regression suite for bug #127450. + Thu Nov 20 00:22:14 CET 2003 Daniel Veillard * libxslt/keys.c: fixed a bug in the keys selector parsing #120684 when | is in a predicate or a string. - * tests/docs/Makefile.am tests/docs/bug-132.xml - tests/general/Makefile.am tests/docs/bug-132*: added tests + * tests/docs/Makefile.am tests/docs/bug-133.xml + tests/general/Makefile.am tests/docs/bug-133*: added tests to the regression suite for bug #120684. * Makefile.am: don't package cvs temp files * doc/apibuild.py: update from libxml2 one diff --git a/libxslt/keys.c b/libxslt/keys.c index 3f5ced2..953163c 100644 --- a/libxslt/keys.c +++ b/libxslt/keys.c @@ -318,8 +318,8 @@ xsltAddKey(xsltStylesheetPtr style, const xmlChar *name, xsltTransformError(NULL, style, inst, "key pattern is malformed: %s", key->match); - } - end++; + } else + end++; } if (current == end) { xsltTransformError(NULL, style, inst, diff --git a/tests/docs/Makefile.am b/tests/docs/Makefile.am index ed02e58..56ee1e0 100644 --- a/tests/docs/Makefile.am +++ b/tests/docs/Makefile.am @@ -133,6 +133,7 @@ EXTRA_DIST = \ bug-131.xml \ bug-132.xml \ bug-133.xml \ + bug-134.xml \ character.xml \ array.xml \ items.xml diff --git a/tests/docs/bug-134.xml b/tests/docs/bug-134.xml new file mode 100644 index 0000000..9d5f51f --- /dev/null +++ b/tests/docs/bug-134.xml @@ -0,0 +1,5 @@ + +

+

+

+ diff --git a/tests/general/Makefile.am b/tests/general/Makefile.am index c24faa0..9176ab5 100644 --- a/tests/general/Makefile.am +++ b/tests/general/Makefile.am @@ -139,6 +139,7 @@ EXTRA_DIST = \ bug-131.out bug-131.xsl bug-131-imp.imp \ bug-132.out bug-132.xsl \ bug-133.out bug-133.xsl \ + bug-134.out bug-134.xsl \ character.out character.xsl \ character2.out character2.xsl \ itemschoose.out itemschoose.xsl \ diff --git a/tests/general/bug-134.out b/tests/general/bug-134.out new file mode 100644 index 0000000..1b5625c --- /dev/null +++ b/tests/general/bug-134.out @@ -0,0 +1,2 @@ + +2 diff --git a/tests/general/bug-134.xsl b/tests/general/bug-134.xsl new file mode 100644 index 0000000..401700a --- /dev/null +++ b/tests/general/bug-134.xsl @@ -0,0 +1,12 @@ + + + + + + + + + + + -- 2.7.4