Changes

Jump to navigation Jump to search
88 bytes removed ,  23:20, 25 April 2012
|-
!Function
!Example
!Description
!Example
|-
| valign='top' width='130'|<code>[[Database Module#db:open|db:open()]]</code>| valign='top' width='220'|{{Mono|db:open("db", "path/to/tocs")}}|Returns all documents that are found in the specified database {{Mono|db}} at the specified (optional) path{{Mono|path/to/docs}}.
|-
| valign='top'|<code>[http://www.xqueryfunctions.com/xq/fn_collection.html fn:collection()]</code>| valign='top' |{{Mono|collection("db/path/to/docs")}}|Returns all documents at the location {{Mono|path/to/docs}} in the database {{Mono|db}}. <br/>All documents in the database are returned if no path is specified.
|-
| valign='top'|<code>[http://www.xqueryfunctions.com/xq/fn_doc.html fn:doc()]</code>| valign='top' |{{Mono|doc("db/path/to/doc.xml")}}|Returns the document at the location {{Mono|path/to/docs}} in the database {{Mono|db}}. <br/>An error is raised if the specified addresses does not address exactly one document.
|}
* {{Mono|doc("http://web.de")}}: retrieves the addressed URI and returns it as a main-memory document node.
* {{Mono|collection("/path/to/docs")}}: returns a main-memory collection with all XML documents found in at the addressed directoryfile path.
==Raw Files==
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu