Hi Jean-Philippe,
when the evaluated expression yields function items. How should we understand this second limitation? Because modules precisely define functions...
This means that the result of a query may not be a function, as e.g. in the following two examples:
xquery:eval("true#0"), xquery:eval("function() { 1 }")
Hope this helps, Christian