Hello,
Congrats on the BaseX 11.8 release.
Was there a change in BaseX 11.8 to the document-uri() and base-uri() functions behavior? It seems that they are striping out a file name at the end of the fully qualified file path on the file system!
Please find below a repro of it.
BaseX 11.7 ========== declare variable $base_dir as xs:string := 'e:\Temp\Identity Transformation88';
for $x at $i in collection($base_dir) let $file := tokenize(document-uri($x), '/')[last()] return (document-uri($x), $file)
Emits the following as expected: file:///E:/Temp/Identity%20Transformation88/Input.xml Input.xml file:///E:/Temp/Identity%20Transformation88/Output.xml Output.xml
BaseX 11.8 ========== The same XQuery emits the following: file:///E:/Temp/Identity%20Transformation88/ file:///E:/Temp/Identity%20Transformation88/
Regards, Yitzhak Khabinsky
basex-talk@mailman.uni-konstanz.de