Changes

Jump to navigation Jump to search
470 bytes added ,  12:47, 8 July 2020
no edit summary
|
* <code>util:init(1 to 4)</code> returns <code>1 2 3</code>.
|}
 
=Node Functions=
 
==util:ddo==
 
{{Mark|Introduced with Version 9.3:}}
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|util:ddo|$nodes as node()*|node()*}}<br/>
|-
| '''Summary'''
|Returns nodes in ''distinct document order'': duplicate nodes will be removed, and the remaining nodes will be returned in [https://www.w3.org/TR/xquery-31/#dt-document-order document order]. All results of path expression are in distinct document order, so the function is equivalent to the expression <code>$nodes/self::node()</code>.
|}
 
{{Mark|Introduced with Version 9.4:}}
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|util:root|$nodes as node()*|document-node()*}}<br/>
|-
| '''Summary'''
|Returns the document nodes of the specified {{Code|$nodes}}. The function is equivalent to the expression <code>$nodes ! /</code>. The path expression <code>/abc</code>
is internally represented as <code>util:root(.)/abc</code.
 
|}
|
* <code>util:chars('AB')</code> returns the two strings <code>A</code> and <code>B</code>.
|}
 
==util:ddo==
 
{{Mark|Introduced with Version 9.3:}}
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|util:ddo|$nodes as node()*|node()*}}<br/>
|-
| '''Summary'''
|Returns nodes in ''distinct document order'': duplicate nodes will be removed, and the remaining nodes will be returned in [https://www.w3.org/TR/xquery-31/#dt-document-order document order]. All results of path expression are in distinct document order, so the function is equivalent to the expression <code>$nodes/self::node()</code>.
|}
=Changelog=
 
;Version 9.4
* Added: [[#util:root|util:root]]
;Version 9.3
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu