Implementations of xqDoc have three main components:
A component to parse the XQuery source code and generate the corresponding xqDoc XML elements for functions and variables, etc.
A component to parse xqDoc style comments (:~ … :)
into the corresponding
xqDoc.
Optionally, a means to render the resulting XML into formats for reading, such as HTML. This part typically uses XSLT.