+Mon Feb 11 16:22:36 CET 2002 Daniel Veillard <daniel@veillard.com>
+
+ * libxslt/pattern.c: fixed bug #71181 p/text() would not
+ work. A bit of cleanup.
+
Mon Feb 11 15:01:42 CET 2002 Daniel Veillard <daniel@veillard.com>
* xslt-config: fixing Red Hat bug #59508
}
continue;
case XSLT_OP_PARENT:
- if ((node->type != XML_ELEMENT_NODE) &&
- (node->type != XML_ATTRIBUTE_NODE))
+ if ((node->type == XML_DOCUMENT_NODE) ||
+ (node->type == XML_HTML_DOCUMENT_NODE) ||
+#ifdef LIBXML_DOCB_ENABLED
+ (node->type == XML_DOCB_DOCUMENT_NODE) ||
+#endif
+ (node->type == XML_NAMESPACE_DECL))
return(0);
node = node->parent;
if (node == NULL)
}
if (node == NULL)
return(0);
+ if ((node->type == XML_DOCUMENT_NODE) ||
+ (node->type == XML_HTML_DOCUMENT_NODE) ||
+#ifdef LIBXML_DOCB_ENABLED
+ (node->type == XML_DOCB_DOCUMENT_NODE) ||
+#endif
+ (node->type == XML_NAMESPACE_DECL))
+ return(0);
node = node->parent;
while (node != NULL) {
if (node == NULL)