==inspect:function==
{{Mark|Updated with Version 8.5:}} {{Code|external}} attribute.
{| width='100%'
|-
|The query {{Code|inspect:function(count#1)}} yields:
<pre class="brush:xml">
<function name="count" uri="http://www.w3.org/2005/xpath-functions" external="false">
<argument type="item()" occurrence="*"/>
<return type="xs:integer"/>
…is represented by {{Code|inspect:function(local:same#1)}} as…
<pre class="brush: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>
<annotation name="private" uri="http://www.w3.org/2012/xquery"/>
==inspect:context==
{{Mark|Updated with Version 8.5:}} {{Code|external}} attribute for variables and functions.
{| width='100%'
|-
==inspect:module==
{{Mark|Updated with Version 8.5:}} {{Code|external}} attribute for variables and functions.
{| width='100%'
|-
==inspect:xqdoc==
{| width='100%'
|-
<see>http://docs.basex.org/wiki/XQDoc_Module</see>
<version>1.0</version>
<variable name="samples:test-string" uri="http://basex.org/modules/samples" type="xs:string" external="false">
<description>This is a sample string.</description>
</variable>
<function name="samples:same" uri="http://basex.org/modules/samples" external="false">
<argument name="number" type="xs:integer">number to return</argument>
<annotation name="private" uri="http://www.w3.org/2012/xquery"/>
* Added: [[#inspect:function-annotations|inspect:function-annotations]], [[#inspect:static-context|inspect:static-context]]
* Updated: {{Code|external}} attribute for variables and functions
;Version 7.9