{ "ns" : "http://zorba.io/modules/xqdoc", "description" : "

\n The goal of xqDoc is to provide a simple vendor neutral solution for\n documenting XQuery modules, as well as tools to generate a user friendly\n presentation of this documentation and cross referencing information.\n Therefore, xqDoc proposes a new commenting convention that extends the\n currently defined XQuery comment style. This convention is modeled\n after Java's Javadoc commenting style, and provides a simple, uniform\n way to document XQuery source code. You can find more information about\n xqDoc on the website of the xqDoc project.\n This library module provides XQDoc utility functions.\n

\n

\n Generating a user friendly presentation of the documentation is\n accomplished in the following steps:\n

    \n
  1. Module, variable, function, collection, and index declarations need\n to be commented using the xqDoc commenting conventions. For example,\n this module contains xqDoc-style comments
  2. \n
  3. A xqDoc-enabled processor can parse such documentation and generate\n a vendor neutral XML document which stores all the information about\n the code and the comments. Such a document adheres to the xqDoc\n Schema.
  4. \n
  5. The information of an XML document generated by the second step,\n can be transformed into arbitrary presentation formats\n (e.g. html).
  6. \n
\n

\n

\n This module implements the first and second step of this process.\n That is, Zorba can parse XQuery modules which are annotated with\n xqDoc-style documentation and generate the vendor neutral\n XML representation.\n

\n", "sees" : [ "xqDoc specification" ], "authors" : [ "Gabriel Petrovay" ], "version" : null, "encoding" : "utf-8", "namespaces" : [ { "uri" : "http://zorba.io/annotations", "prefix" : "an" }, { "uri" : "http://www.w3.org/2005/xqt-errors", "prefix" : "err" }, { "uri" : "http://zorba.io/modules/fetch", "prefix" : "fetch" }, { "uri" : "http://zorba.io/modules/xqdoc-options", "prefix" : "opt" }, { "uri" : "http://zorba.io/modules/schema", "prefix" : "schema" }, { "uri" : "http://zorba.io/options/versioning", "prefix" : "ver" }, { "uri" : "http://zorba.io/modules/xqdoc", "prefix" : "xqd" }, { "uri" : "http://zorba.io/errors", "prefix" : "zerr" } ], "functions" : [ { "arity" : 1, "name" : "xqdoc-content", "qname" : "xqd:xqdoc-content", "signature" : "($module as xs:string) as element(*)", "description" : " Generated the an XQDoc XML document for the module provided\n as parameter to this function.\n", "summary" : "

Generated the an XQDoc XML document for the module provided\n as parameter to this function.

", "annotation_str" : "", "annotations" : [ ], "updating" : false, "parameters" : [ { "name" : "module", "type" : "xs:string", "occurence" : null, "description" : "
The module (as string) for which to generate the XQDoc documentation.
" } ], "returns" : { "type" : "element(*)", "description" : "An element according to the xqdoc schema (http://zorba.io/modules/xqdoc.xsd)." }, "errors" : [ "zerr::ZXQD0002 if the xqdoc comments in the module contain invalid XML" ] }, { "arity" : 2, "name" : "xqdoc-content", "qname" : "xqd:xqdoc-content", "signature" : "($module as xs:string, $options as element(opt:enable)) as element(*)", "description" : " Generated the an XQDoc XML document for the module provided\n as parameter to this function.\n In comparison to the single parameter version, this function does not\n generate XQDoc for all language components. By default, the\n following components are deactivated: XQuery comments, import\n statements, variable declarations, function declarations, collection\n declarations, and index declarations. The second parameter is used to\n enable the XQDoc generation of those components.\n", "summary" : "

Generated the an XQDoc XML document for the module provided\n as parameter to this function.

", "annotation_str" : "", "annotations" : [ ], "updating" : false, "parameters" : [ { "name" : "module", "type" : "xs:string", "occurence" : null, "description" : "
The module (as string) for which to generate the XQDoc documentation.
" }, { "name" : "options", "type" : "element(opt:enable)", "occurence" : null, "description" : "
XQDoc generation options, e.g.:
 <enable xmlns=\"http://zorba.io/modules/xqdoc-options\" comments=\"true\" functions=\"true\" indexes=\"true\" > 
" } ], "returns" : { "type" : "element(*)", "description" : "An element according to the xqdoc schema (http://zorba.io/modules/xqdoc.xsd)." }, "errors" : [ "zerr::ZXQD0002 if the xqdoc comments in the module contain invalid XML" ] }, { "arity" : 1, "name" : "xqdoc", "qname" : "xqd:xqdoc", "signature" : "($module-uri as xs:string) as element(*)", "description" : " Generates an XQDoc XML document for the module located\n at the URI provided as parameter to this function.\n", "summary" : "

Generates an XQDoc XML document for the module located\n at the URI provided as parameter to this function.

", "annotation_str" : " %an:nondeterministic", "annotations" : [ { "prefix" : "an", "ns" : "http://zorba.io/annotations", "name" : "nondeterministic", "value" : "" } ], "updating" : false, "parameters" : [ { "name" : "module-uri", "type" : "xs:string", "occurence" : null, "description" : "
The URL of the module for which to generate XQDoc.
" } ], "returns" : { "type" : "element(*)", "description" : "An element according to the xqdoc schema (http://zorba.io/modules/xqdoc.xsd)." }, "errors" : [ "zerr::ZXQD0002 if the xqdoc comments in the module contain invalid XML" ] }, { "arity" : 2, "name" : "xqdoc", "qname" : "xqd:xqdoc", "signature" : "($module-uri as xs:string, $options as element(opt:enable)) as element(*)", "description" : " Generates an XQDoc XML document for the module located\n at the URI provided as parameter to this function.\n In comparison to the single parameter version, this function does not\n generate XQDoc for all language components. By default, the\n following components are deactivated: XQuery comments, import\n statements, variable declarations, function declarations, collection\n declarations, and index declarations. The second parameter is used to\n enable the XQDoc generation of those components.\n", "summary" : "

Generates an XQDoc XML document for the module located\n at the URI provided as parameter to this function.

", "annotation_str" : "", "annotations" : [ ], "updating" : false, "parameters" : [ { "name" : "module-uri", "type" : "xs:string", "occurence" : null, "description" : "
The URL of the module for which to generate XQDoc.
" }, { "name" : "options", "type" : "element(opt:enable)", "occurence" : null, "description" : "
XQDoc generation options, e.g.:
 <enable xmlns=\"http://zorba.io/modules/xqdoc-options\" comments=\"true\" functions=\"true\" indexes=\"true\" /> 
" } ], "returns" : { "type" : "element(*)", "description" : "An element according to the xqdoc schema (http://zorba.io/modules/xqdoc.xsd)." }, "errors" : [ "zerr::ZXQD0002 if the xqdoc comments in the module contain invalid XML" ] } ], "variables" : [ ] }