Please refer to our documentation for more information about the lifecycle management and manipulation of documents.
available-documents
() as xs:string* external
Retrieves a sequence of URIs of documents bound in the store. |
document
($uri as xs:string) as document() external
Gets the document with the given URI from the store. |
is-available-document
($uri as xs:string) as xs:boolean external
Returns true if a document with the given URI exists in the store. |
put
($uri as xs:string, $doc as document()) external
Adds a document to the store. |
remove
($uri as xs:string) external
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 fn:put()
function.
The difference is that this function accepts only document nodes as
parameters.
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