Skip to content

Commit 976e772

Browse files
committed
Workaround a type issue in eXist-db 5.3.0-SNAPSHOT
See #12 See eXist-db/exist#3506
1 parent 7779f2c commit 976e772

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/xar-resources/modules/util.xqm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ declare function ut:tail($seq as item()*) as item()* {
6666
: @return the URI of the created collection
6767
:)
6868
declare function ut:mkcol($uri as xs:string) as xs:string {
69-
let $parts := fn:tokenize(substring-after($uri, "/db"), "/")[fn:string-length(.) gt 0]
69+
let $parts := fn:tokenize(substring-after($uri, "/db"), "/") ! .[fn:string-length(.) gt 0]
7070
return
7171
let $_ := ut:_mkcol("/db/" || ut:head($parts), ut:tail($parts))
7272
return

0 commit comments

Comments
 (0)