Hi Christian, Thanks for your answer.
Both files are in the same local directory when loading into BaseX. I've tried several things like removing the xpointer (to make sure it's not the problem) and the fallback scenario. When I add the file into BaseX I now have the following message when adding the main file into BaseX.
An include with href 'EP15.xml'failed, and no fallback element was found.
I keep trying but cannot get it to work.
Thanks for your help
Pascal
-----Message d'origine----- De : Christian Grün christian.gruen@gmail.com Envoyé : mardi 16 février 2021 11:00 À : pascaljoubaud@gmail.com Cc : BaseX basex-talk@mailman.uni-konstanz.de Objet : Re: [basex-talk] BaseX, xinclude and xpointer
Hi Pascal,
Welcome to the list, thanks for your contribution.
Basically i have a main file which contains this xinclude instruction :
<xi:include href="EP15.xml" xpointer="element(EP15)">xi:fallback<p>Pièce non encodée pour le moment.</p></xi:fallback></xi:include>
In my baseX database i have my main file and the EP15.xml file which contains this instruction :
The XINCLUDE option affects the behavior of the default Java XML parser, which will try to look up files in your local file system. This means you may need to ensure that EP15.xml is located in the same directory as your main file when add the latter one to the database.
Does this help?
Salutations cordiales, Christian