mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
fixed the bug generating a template loop in libxslt when using
* xpath.c: fixed the bug generating a template loop in libxslt when using docbook-xsl-1.4, * should filter out document nodes * HACKING: added William * TODO: updated Daniel
This commit is contained in:
4
xpath.c
4
xpath.c
@ -7361,9 +7361,7 @@ xmlXPathNodeCollectAndTest(xmlXPathParserContextPtr ctxt,
|
||||
addNode(list, cur);
|
||||
}
|
||||
} else {
|
||||
if ((cur->type == XML_ELEMENT_NODE) ||
|
||||
(cur->type == XML_DOCUMENT_NODE) ||
|
||||
(cur->type == XML_HTML_DOCUMENT_NODE)) {
|
||||
if (cur->type == XML_ELEMENT_NODE) {
|
||||
if (prefix == NULL) {
|
||||
#ifdef DEBUG_STEP
|
||||
n++;
|
||||
|
Reference in New Issue
Block a user