Please take a look at xqDoc for XQuery that is like JavaDoc for Java.https://github.com/lcahlander/xqdoc