mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-07 10:42:55 +03:00
Fix for EXSLT func:function
For https://bugzilla.gnome.org/show_bug.cgi?id=680920 If the first child of a func:function template is xslt:text, it will be removed by xsltParseTemplateContent. So xsltParseTemplateContent should be called before setting func->content to the first child.
This commit is contained in:
committed by
Daniel Veillard
parent
0602c535e9
commit
14ee81b06c
@@ -488,6 +488,8 @@ exsltFuncFunctionComp (xsltStylesheetPtr style, xmlNodePtr inst) {
|
|||||||
}
|
}
|
||||||
xmlFree(prefix);
|
xmlFree(prefix);
|
||||||
|
|
||||||
|
xsltParseTemplateContent(style, inst);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Create function data
|
* Create function data
|
||||||
*/
|
*/
|
||||||
@@ -499,8 +501,6 @@ exsltFuncFunctionComp (xsltStylesheetPtr style, xmlNodePtr inst) {
|
|||||||
func->nargs++;
|
func->nargs++;
|
||||||
}
|
}
|
||||||
|
|
||||||
xsltParseTemplateContent(style, inst);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Register the function data such that it can be retrieved
|
* Register the function data such that it can be retrieved
|
||||||
* by exslFuncFunctionFunction
|
* by exslFuncFunctionFunction
|
||||||
|
Reference in New Issue
Block a user