* libxslt/pattern.c libxslt/transform.c: changed the way the
root element of value tree are handled to fix bug #104123
Daniel
+Tue Feb 4 18:39:35 CET 2003 Daniel Veillard <daniel@veillard.com>
+
+ * libxslt/pattern.c libxslt/transform.c: changed the way the
+ root element of value tree are handled to fix bug #104123
+
Tue Feb 4 18:15:01 CET 2003 Daniel Veillard <daniel@veillard.com>
* README: change of policy w.r.t. mails
#endif
(node->type == XML_HTML_DOCUMENT_NODE))
continue;
+ if ((node->type == XML_ELEMENT_NODE) && (node->name[0] == ' '))
+ continue;
return(0);
case XSLT_OP_ELEM:
if (node->type != XML_ELEMENT_NODE)
*/
switch (node->type) {
case XML_ELEMENT_NODE:
+ if (node->name[0] == ' ')
+ break;
case XML_ATTRIBUTE_NODE:
case XML_PI_NODE:
name = node->name;
*/
switch (node->type) {
case XML_ELEMENT_NODE:
- list = curstyle->elemMatch;
+ if (node->name[0] == ' ')
+ list = curstyle->rootMatch;
+ else
+ list = curstyle->elemMatch;
break;
case XML_ATTRIBUTE_NODE:
list = curstyle->attrMatch;
xsltTemplatePtr template;
xmlNodePtr oldNode;
+#if 0
if (xmlStrEqual(node->name, BAD_CAST " fake node libxslt")) {
xmlNodePtr children;
}
return;
}
+#endif
template = xsltGetTemplate(ctxt, node, NULL);
/*
* If no template is found, apply the default rule.