Skip to content
Snippets Groups Projects
Commit e4af0aa5 authored by uwe's avatar uwe
Browse files

added helper functions

parent 51087516
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ xquery version "3.1";
: @status developing
: @author Uwe Sikora
:)
module namespace ifutils="http://bdn.edition.de/intermediate_format/utils";
module namespace ifutils="http://bdn-edition.de/intermediate_format/utils";
import module namespace http = "http://expath.org/ns/http-client";
(:############################# Modules Variables #############################:)
......@@ -60,6 +60,25 @@ declare function ifutils:get-resource
};
(:~
: ifutils:ls()
: This function lists all documents from a collection
:
: @param $collection the path of a collection
: @return all document-base-uris from the collection
:
: @version 1.0 (2018-03-23)
: @status developing
: @author Uwe Sikora
:)
declare function ifutils:ls
( $collection as xs:string ) {
for $doc in collection($collection)
return base-uri($doc)
};
(:~
: ifutils:request()
: This http wrapper function models a request
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment