Skip to content
Snippets Groups Projects
Commit 3e0197606e6e authored by Nick Wellnhofer's avatar Nick Wellnhofer
Browse files

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.
parent ea9b44b752c8
Branches
No related tags found
No related merge requests found
...@@ -488,6 +488,8 @@ ...@@ -488,6 +488,8 @@
} }
xmlFree(prefix); xmlFree(prefix);
xsltParseTemplateContent(style, inst);
/* /*
* Create function data * Create function data
*/ */
...@@ -499,8 +501,6 @@ ...@@ -499,8 +501,6 @@
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment