Maybe we can turn it around: I’ll give you a step-by-step explanation
of what I did, and I would be interested if it works for you:

1. choose a local directory
2. copy music.xml and label.xml into that directory
3. download and unzip BaseX.zip into that directory [1]
4. go to the command line and type in:

basex\bin\basex -d -c "create db test music.xml" -q.

This is what is returned on my command-line:

Creating Database...
. 129.25 ms (16 MB)
Indexing Text...
. 0.0 M operations, 4.89 ms (19 MB).
Indexing Attribute Values...
. 0.0 M operations, 2.53 ms (19 MB).
<musique xmlns:xi="http://www.w3.org/2001/XInclude";>
     <titre>Smoke on the water</titre>
     <artiste>Deep Purple</artiste>
     <label xml:base="label.xml">Purple Records</label>
</musique>

Could you please pass on your output such that we can compare it?

With -d, debugging is enabled (which might give us some hints on what
goes wrong on your machine). With "-q.", the contents of the created
database will be returned.

If you use Linux or macOS, you’ll need to replace the backslash
characters with slashes.

Which operating system and which Java version and distribution do you use?

Best,
Christian

[1] https://files.basex.org/releases/10.4/BaseX104.zip



On Fri, Mar 17, 2023 at 3:21 PM Virgile Reignier
<virgile.reign...@u-picardie.fr> wrote:
>
> Hi Daniel,
>
> Actually it's hard to describe because I don't have a detailed error
> message to go on. The only thing I understand is that the default
> parser used by BaseX does not know how to use XInclude.
>
> This manifests itself in two ways: when I import a file that includes
> an XInclude, the interface displays the following error: "An include
> with href 'label.xml'failed, and no fallback element was found" if I
> take the example I presented in my first email. And if I modify a file
> in my database to add an XInclude tag with another interface such as
> Oxygen, the file is transformed into a binary format and becomes
> impossible to manipulate by BaseX.
>
> If it works on your side, it should logically works on mine, but even
> with a second computer I have at my disposal it causes exactly the
> same thing.
>
> Maybe BaseX uses a software support that needs to be put in a specific
> version? Thank you for your help and I am at your disposal if any
> other indications or tests can help you to better understand the
> situation. From my side, it's as if I'm swimming.
>
> Bien cordialement,
>
> Virgile

Reply via email to