diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2004-09-29 13:43:13 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2004-09-29 13:43:13 +0000 |
commit | 041c2feea7c594aa475e74bca852c8bed7618c9d (patch) | |
tree | 53984b78e0ff101e9936f4ca40c3de6050a78307 | |
parent | d9cf00372fda2672369fa7275f5084f5def15cf4 (diff) | |
download | libxslt-041c2feea7c594aa475e74bca852c8bed7618c9d.tar.gz libxslt-041c2feea7c594aa475e74bca852c8bed7618c9d.tar.bz2 libxslt-041c2feea7c594aa475e74bca852c8bed7618c9d.zip |
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
-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, |