mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-11-29 04:23:08 +03:00
corrected my error from bug 135938 pointed out on the mailing list by Mark
* 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
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
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
|
||||
|
||||
@@ -3006,8 +3006,15 @@ xsltCallTemplate(xsltTransformContextPtr ctxt, xmlNodePtr node,
|
||||
if (comp->templ == NULL) {
|
||||
comp->templ = xsltFindTemplate(ctxt, comp->name, comp->ns);
|
||||
if (comp->templ == NULL) {
|
||||
if (comp->ns != NULL) {
|
||||
xsltTransformError(ctxt, NULL, inst,
|
||||
"xsl:call-template : template %s not found\n", comp->name);
|
||||
"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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -760,7 +760,7 @@ xsltGetQNameURI2(xsltStylesheetPtr style, xmlNodePtr node,
|
||||
xmlFree(qname);
|
||||
return(NULL);
|
||||
}
|
||||
*name = xmlDictLookup(style->dict, (*name)+len, -1);
|
||||
*name = xmlDictLookup(style->dict, (*name)+len+1, -1);
|
||||
xmlFree(qname);
|
||||
return(ns->href);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user