Hello list,
I have a file some.xml containing
<xml>hello world!</xml>
and I can read it in BaseX code like this:
java org.basex.BaseX "declare namespace fn='http://www.w3.org/2005/xpath-functions%27;fn:doc(%27some.xml')"
However I cannot use fn:unparsed-text() from a command line, when a namespace declaration with a protocol is present. I have tried to do
java org.basex.BaseX "declare namespace fn='http://www.w3.org/2005/xpath-functions%27;fn:unparsed-text(%27some.xml')"
but I keep getting this:
Stopped at ., 1/79: [FOUT1170] Static Base URI is undefined.
This is strange, because the command works fine without the namespace declaration:
java org.basex.BaseX "unparsed-text('some.xml')"
What can I do to use both namespace declarations and fn:unparsed-text from within a single command line?
Best regards Gunther