The following features should be borne in mind:
Function names may be referenced in XQuery in a number of different styles. For example:
abc:foo(42)
or prefix2:foo(42)
foo(42)
(: with a default function namespace definition
:)
Q{http://nowhere.com/funs}foo(42)
Most xqDoc implementations return these as coded, rather than normalising them to a standard form. This can make finding cross-references more complex.
Some implementations allow their library modules to be used without explicit import
module
statements.
If these imports are not listed in the generated xqDoc, it can be difficult to resolve some names. This suggests an xqDoc generator needs information about the target platform both for its grammar and its static context.