Changes

Jump to navigation Jump to search
271 bytes added ,  12:47, 15 November 2019
=Documentation=
 
==inspect:type==
{{Mark|Introduced with Version 9.3:}}
 
==inspect:type==
{| width='100%'
|-
| '''Summary'''
|Returns a string representation of the type of a value as string:* The string representation includes the occurrence indicator.* The actual type of a value functions and nodes may be the stricter than the returned type.* For type checking, the standard expressions {{Code|typeswitch}} and {{Code|instance of}} should be used instead.
|-
| '''Examples'''
|{{Code|* <code>inspect:type(1 to 100)}} </code> returns {{Code|<code>xs:integer+}}</code>|{{Code|* <code>inspect:type(map { 'a': (1, 2)[. = 1] })}} </code> returns {{Code|<code>map(*)}} (</code>; a stricter type representation would be {{Code|<code>map(xs:string, xs:string}})</code>* <code>inspect:type(<a/>)</code> returns <code>element()</code>; a stricter type representation would be <code>element(a)</code>
|}
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu