Page 1 of 1

xinclude pointing to other eXist collections

Posted: Mon Jun 17, 2019 4:03 pm
by bernardusgui
In my eXist database, I have a collection hierarchy that looks something like this:

>db/apps/foo/data/common
>db/apps/foo/data/TC0001
>db/apps/foo/data/TC0002
>db/apps/foo/data/TC0003

Within each /data/TCxxxx collection... are XML files that contain xincludes that need to point to a given XMLl file in /common/ But I can't figure out how to write an xinclude that points correctly across to a document in another collection in eXist.

Thanks.

Re: xinclude pointing to other eXist collections

Posted: Tue Jun 18, 2019 9:01 am
by Radu
Hi,

Usually in such cases you could try using relative references like "../common/common.xml". If this does not work, maybe you can ask around on the Exist Users mailing List, see how others are handling similar usecases.

Regards,
Radu