Hi all,
The xquerydoc project is a 100% XQuery 1.0 project which can parse XQuery modules and extract XQDoc style documentation. I've recently extended it to be able to parse XQuery Update and XQuery Full Text, which I believe solves the majority of problems if you want to use it with modules written for BaseX. The project is available here:
https://github.com/xquery/xquerydoc
I'm happy to add any other syntax that BaseX supports as well, but I'll need help understanding what that is if there is anything.
Enjoy your XQuery documentation!
John