On Sat, 2024-12-07 at 00:16 +0100, Christian Grün wrote:
> Hi Ben,
> 
> Relative paths are supported, but they are resolved against the
> working directory of your server instance (not the client instance,
> as you might expect).


Note also, the Content not allowed in prolog message is produced by the
default Java XML parser (and maybe others) if it encounters whitespace
or anything other than <?xml or <!DOCTYPE or < followed by a name
character at the start of the document. This can include an empty file,
so th message can mean the file wasn't found. In some configurations,
error messages can get sent to the parser by mistake, instead of to
standard error or raising an exception, and of course those error
messages are then parsed as XML and the parser gives this error.

This was one of the hardest things about using (at least early versions
of) Calabash, the XProc processor.

On Linux you can also use strace to trace the BaseX server - attach to
the running process and trace the "openat" and "stat" system calls -
and this will show where it’s looking.
Use dtrace on the Mac (or on Solaris), i think.

liam

-- 
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

Reply via email to