+Tue Mar 16 08:55:18 HKT 2004 William Brack <wbrack@mmm.com.hk>
+
+ * libxslt/xsltutils.c: corrected my error from bug 135938
+ pointed out on the mailing list by Mark Vakoc.
+ * libxslt/transform.c: enhanced the error message for
+ call-template when namespace is present.
+ * tests/general/bug-145.err: regenerated for new message
+
Fri Mar 12 13:07:03 HKT 2004 William Brack <wbrack@mmm.com.hk>
* libxslt/namespaces.c: added additional check to prevent
if (comp->templ == NULL) {
comp->templ = xsltFindTemplate(ctxt, comp->name, comp->ns);
if (comp->templ == NULL) {
- xsltTransformError(ctxt, NULL, inst,
- "xsl:call-template : template %s not found\n", comp->name);
+ if (comp->ns != NULL) {
+ xsltTransformError(ctxt, NULL, inst,
+ "xsl:call-template : template %s:%s not found\n",
+ comp->ns, comp->name);
+ } else {
+ xsltTransformError(ctxt, NULL, inst,
+ "xsl:call-template : template %s not found\n",
+ comp->name);
+ }
return;
}
}
xmlFree(qname);
return(NULL);
}
- *name = xmlDictLookup(style->dict, (*name)+len, -1);
+ *name = xmlDictLookup(style->dict, (*name)+len+1, -1);
xmlFree(qname);
return(ns->href);
}
compilation error: file ./bug-145.xsl line 4 element transform
xsl:version is missing: document may not be a stylesheet
runtime error: file ./bug-145.xsl line 6 element call-template
-xsl:call-template : template :a not found
+xsl:call-template : template a:a not found
no result for ./../docs/bug-145.xml