Invoke xquerydoc from XQuery - xquery/xquerydoc GitHub Wiki

The following example illustrates how to do this.

####XQuery v1.0 Example (Saxon)

xquery version "1.0" encoding "UTF-8";

import module namespace xqdoc="http://github.com/xquery/xquerydoc" at "src/xquery/xquerydoc.xq";

xqp:parse-XQuery(fn:collection('/some/xquery/?select=file.xqy;unparsed=yes')) 

####Example with styling tba