Please refer to our documentation for more information about the lifecycle management and manipulation of documents.
Retrieves a sequence of URIs of documents bound in the store.
Gets the document with the given URI from the store.
Returns true if a document with the given URI exists in the store.
Adds a document to the store.
Removes the document with the given URI from the store.
declare function doc:available-documents() as xs:string* external
declare function doc:document($uri as xs:string) as document() external
declare function doc:is-available-document($uri as xs:string) as xs:boolean external
declare function doc:put($uri as xs:string, $doc as document()) external
doc:document()function to retrieve the document from the store.
The semantics of the function is similar to the
The difference is that this function accepts only document nodes as
Please note that this function does not try to fetch the document from the
external resource identified by the URI.
Instead, the file or http-client modules can be used to retrieve the
resource as string and
fn:parse-xml() can be used to parse the
string returning a document.
declare function doc:remove($uri as xs:string) external