Hi all,
I'm using BaseX 8.3.1 and am trying to access a directory structure like so:
declare namespace t = "http://www.tei-c.org/ns/1.0"; for $ready in fn:collection("/usr/home/bridger/Documents/foo/bar/?select=*.xml;recurse=yes")/t:TEI let $title := fn:data($ready/t:teiHeader/t:fileDesc/t:titleStmt/t:title) return $title
The structure under bar/ looks something like bar/ 001/ 001.xml 002/ 002.xml 003/ 003.xml ... ... 009/ 009.xml
Does BaseX's fn:collection() allow for recursion into a directory structure like this with the /?select syntax options or should I use a combination of functions from the File Module to move through these directories?
Note: I'm not pulling these files into a database, rather I'm just using BaseX as a query processor.
Thanks for your time. Best, Bridger