Changes

Jump to navigation Jump to search
1,053 bytes removed ,  09:58, 21 May 2019
no edit summary
|
* <code><nowiki>fetch:content-type("http://docs.basex.org/skins/vector/images/wiki.png")</nowiki></code> returns {{Code|image/png}}.
|}
 
==fetch:doc==
 
{{Mark|Introduced with Version 9.3.}}
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|fetch:doc|$uri as xs:string|document-node()}}
|-
| '''Summary'''
|Retrieves the document from the specified {{Code|$uri}} and returns it as document node.<br/>The only difference to <code>fn:doc</code> is that documents in databases will be ignored. As a consequence, the function call will never lead to [[Transaction_Management|database locks]].
|}
 
==fetch:collection==
 
{{Mark|Introduced with Version 9.3.}}
 
{| width='100%'
|-
| width='120' | '''Signatures'''
|{{Func|fetch:collection|$uri as xs:string|document-node()*}}
|-
| '''Summary'''
|Retrieves all documents from the specified {{Code|$uri}} and returns a sequence of document nodes.<br/>The only difference to <code>fn:collection</code> is that documents in databases will be ignored. As a consequence, the function call will never lead to [[Transaction_Management|database locks]].
|}
=Changelog=
 
;Version 9.3
 
* Added: [[#fetch:doc|fetch:doc]], [[#fetch:collection|fetch:collection]]
;Version 9.0
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu