Dear BaseX team,
I face unexpected problem when trying to switch off xinclude processing. From the documentation I understand that what I have to do is set the option XINCLUDE to the value "false". But how?
Attempt #1=========
I added to the config file .basex the line: XINCLUDE = false
Result: no effect, and these messages:
C:/Program Files (x86)/BaseX/.basex: Unknown option 'XINCLUDE'.
C:/Program Files (x86)/BaseX/.basex: writing new configuration file.
Did I misunderstand the documentation?
Attempt #2========
I inserted into the query this initial line:declare option db:XINCLUDE 'false';
Result:
Program crash with this message:[FODC0002] "file:///C:/projects/otds/otds-config/h.xml" (Line 1): Vorzeitiges Dateiende.
where the named file (h.xml) is the output (!) file specified either like this:basex foo.xq > h.xmlor like this:basex -o h.xml foo.xq
Note. Using neither > ... nor -o ..., I do get the correct output, written to stdout. But I must capture it, and the capturing fails!
Attempt #3========
Patching the basex.bat file, inserting option -D:
java -Dorg.basex.XINCLUDE=false -cp "%CP%" %BASEX_JVM% org.basex.BaseX %*
Result:Same as attempt #2
So I'm at a loss. I need to switch off xinclude because my input files use xinclude in combination with xpointer attributes, like this:
<xi:include href="../../../globals/notifications.xml" xpointer="xpointer(/config/*)" parse="xml" />
Applying doc(...) to such a file, yields this result:
[FODC0002] "file:///C:/projects/otds/otds-config/branches/path/to/bar.xml" (Line 11): "include" mit href "../../../globals/notifications.xml" nicht erfolgreich, und es wurde kein "fallback"-Element gefunden.
Can you help me?
Hans-Jürgen
PS: Using version:BaseX 8.3 beta 474994c [Standalone]