On Fri, 2022-02-11 at 18:40 +0000, Hans-Juergen Rennau wrote: > > (a) It is the full paths what we need in order to parse the files > (doc(), json:doc(), csv:doc(), html:doc()).
Why? A relative path should work fine; if necessary you can use resolve- uri() to turn a relative path into a full URI. > (b) The combination of file listing and parsing in a single > expression is of matchless elegance and expressiveness > > Currently, if I don't overlook something, I have to do this: > file:list($dir, false(), $fname) ! concat($dir, '/', .) ! doc(.) => > count() Probably, you should use resolve-uri($dir, base-uri(.)) although i suppose you also need to watch for filenames containing colons... -- Liam Quin, https://www.delightfulcomputing.com/ Available for XML/Document/Information Architecture/XSLT/ XSL/XQuery/Web/Text Processing/A11Y training, work & consulting. Barefoot Web-slave, antique illustrations: http://www.fromoldbooks.org