Changes

Jump to navigation Jump to search
48 bytes removed ,  18:39, 1 December 2023
m
Text replacement - "syntaxhighlight" to "pre"
|'''Examples'''
|The query {{Code|inspect:function(count#1)}} yields:
<syntaxhighlight pre lang="xml">
<function name="count" uri="http://www.w3.org/2005/xpath-functions" external="false">
<argument type="item()" occurrence="*"/>
</pre>
…is represented by {{Code|inspect:function(local:same#1)}} as…
<syntaxhighlight pre lang="xml">
<function name="local:same" uri="http://www.w3.org/2005/xquery-local-functions" external="false">
<argument type="xs:integer" name="number">number to return</argument>
If {{Code|inspect:module('sample.xqm')}} is run, the following output will be generated:
<syntaxhighlight pre lang="xml">
<module prefix="samples" uri="http://basex.org/modules/samples">
<description>This module provides some sample functions to demonstrate
The output looks as follows if {{Code|inspect:xqdoc('sample.xqm')}} is called:
<syntaxhighlight pre lang="xml">
<xqdoc:xqdoc xmlns:xqdoc="http://www.xqdoc.org/1.0">
<xqdoc:control>
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu