Changes

Jump to navigation Jump to search
822 bytes added ,  15:16, 31 May 2013
=Example=
The query This is the {{Code|xqdoc:parse('sample.xqxqm')}} will convert the following example library module...:
<pre class="brush:xquery">
</pre>
When [[#inspect:module|inspect:module]] is run, the following output will be generated: <pre class="brush:xml"><module prefix="samples" uri="http://basex.org/modules/samples"> <variable name="samples:test-string" uri="http://basex.org/modules/samples" type="xs:string"> <comment> <description>This is a sample string.</description> </comment> </variable> <function name="samples:same" uri="http://basex.org/modules/samples"> <parameter name="number" type="xs:integer">number to return</parameter> <annotation name="private" uri="http://www.w3.org/2012/xquery"/> <description>This function simply returns the specified integer.</description> <return>specified number</return> <return type="xs:integer">specified number</return> </function></module></pre> When [[#inspect:xqdoc|inspect:xqdoc]] is run, the following outputlooks as follows:
<pre class="brush:xml">
Bureaucrats, editor, reviewer, Administrators
12,944

edits

Navigation menu