All,
 
The QT4 Community Group is considering specifying XPath 4.0 functions for node construction: https://github.com/qt4cg/qtspecs/issues/573
 
More globally, XPath 4.0 might be defined as XQuery body, that is XQuery minus XQuery prolog: https://github.com/qt4cg/qtspecs/issues/573#issuecomment-1611788634
 
--Alain