From XSLT Extension Objects:
The data types returned from extension objects are one of the four basic XPath data types of
number,string,Boolean, andnode set.
At the moment the LegacyXsltFunctionContainer contains function with void return value. It think they should be adjusted to conform mentions rule/recommendation.