Commit 04493707 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

minor fixes

parent e4c1faab
......@@ -157,7 +157,7 @@ declare function local:mkcol-recursive($collection, $components) {
()
};
(: Helper function to recursively create a collection hierarchy. :)
declare function app:mkcol($path) {
declare function f-misc:mkcol($path) {
if(not(starts-with($path, "/")))
then error(QName("error", "path"), "Invalid path. Absolute path required.")
else
......@@ -165,7 +165,7 @@ declare function app:mkcol($path) {
then error(QName("error", "charset"), "Invalid path. use characters that match [a-zA-Z0-9\-\.\+] only.")
else
let $components := tokenize($path, "/")
let $components := tokenize($path, "/")[.!=""]
return
local:mkcol-recursive($components[1], subsequence($components, 2))
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment