From 367932aafb3345dffbe3d508737a510dbedefdba Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Mon, 9 Sep 2002 12:08:24 +0000 Subject: [PATCH] fixed a bug in match="node()" reported by Ben Ko Daniel * libxslt/pattern.c: fixed a bug in match="node()" reported by Ben Ko Daniel --- ChangeLog | 5 +++++ libxslt/pattern.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ba72efe..7e87043 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Sep 9 14:07:06 CEST 2002 Daniel Veillard + + * libxslt/pattern.c: fixed a bug in match="node()" reported by + Ben Ko + Mon Sep 9 14:06:25 CEST 2002 Daniel Veillard * libxslt.spec.in: fixes libary path for x86_64 AMD diff --git a/libxslt/pattern.c b/libxslt/pattern.c index 6085c1a..c937bce 100644 --- a/libxslt/pattern.c +++ b/libxslt/pattern.c @@ -2174,7 +2174,8 @@ xsltGetTemplate(xsltTransformContextPtr ctxt, xmlNodePtr node, * Some of the tests for elements can also apply to documents */ if ((node->type == XML_DOCUMENT_NODE) || - (node->type == XML_HTML_DOCUMENT_NODE)) { + (node->type == XML_HTML_DOCUMENT_NODE) || + (node->type == XML_TEXT_NODE)) { list = curstyle->elemMatch; while ((list != NULL) && ((ret == NULL) || (list->priority > priority))) { -- 2.7.4