diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libxslt/pattern.c | 8 |
2 files changed, 11 insertions, 2 deletions
@@ -1,3 +1,8 @@ +Wed Sep 29 15:42:33 CEST 2004 Daniel Veillard <daniel@veillard.com> + + * 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 <daniel@veillard.com> * doc/tutorial2/libxslt_pipes.*: New tutorial from Panagiotis Louridas diff --git a/libxslt/pattern.c b/libxslt/pattern.c index 68259cd3..477b514a 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, |