From 041c2feea7c594aa475e74bca852c8bed7618c9d Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Wed, 29 Sep 2004 13:43:13 +0000 Subject: [PATCH] try to fix #153137 but without a test case it's shooting in the dark. * libxslt/pattern.c: try to fix #153137 but without a test case it's shooting in the dark. Daniel --- ChangeLog | 5 +++++ libxslt/pattern.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5a0d344..ed54771 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Sep 29 15:42:33 CEST 2004 Daniel Veillard + + * libxslt/pattern.c: try to fix #153137 but without a test case + it's shooting in the dark. + Tue Sep 28 16:20:48 CEST 2004 Daniel Veillard * doc/tutorial2/libxslt_pipes.*: New tutorial from Panagiotis Louridas diff --git a/libxslt/pattern.c b/libxslt/pattern.c index 68259cd..477b514 100644 --- a/libxslt/pattern.c +++ b/libxslt/pattern.c @@ -770,7 +770,9 @@ xsltTestCompMatch(xsltTransformContextPtr ctxt, xsltCompMatchPtr comp, * If the node is in a Value Tree we cannot * cache it ! */ - if (node->doc != NULL) { + if ((node->doc != NULL) && + (node->doc->name != NULL) && + (node->doc->name[0] != ' ')) { len = (int) XSLT_RUNTIME_EXTRA(ctxt, select->lenExtra); XSLT_RUNTIME_EXTRA(ctxt, @@ -875,7 +877,9 @@ xsltTestCompMatch(xsltTransformContextPtr ctxt, xsltCompMatchPtr comp, * If the node is in a Value Tree we cannot * cache it ! */ - if (node->doc != NULL) { + if ((node->doc != NULL) && + (node->doc->name != NULL) && + (node->doc->name[0] != ' ')) { len = (int) XSLT_RUNTIME_EXTRA(ctxt, select->lenExtra); XSLT_RUNTIME_EXTRA(ctxt, -- 2.7.4