Re: oxf protocol for finding a file
Posted by
Alessandro Vernet on
URL: https://discuss.orbeon.com/oxf-protocol-for-finding-a-file-tp45182p45183.html
Phani,
Phani Sajja wrote
Hi,
I installed my application as a separate deployment. When I try to
include a file with *xi:include* like
<xi:include href="/xforms-jsp/menu.xhtml" xxi:omit-xml-base="true" />
it is giving the error \xforms-jsp\menu.xhtml (The system cannot find the
path specified)
When I include the file like href="
http://172.31.130.131/project/xforms-jsp/tmenu.xhtml"
it is working fine. Is there any other way to include the file so that when
the deployment changed to a different system there is no need to change the
IP address.
If you put the file in the orbeon/WEB-INF/resource/gaga.xml you should be able to XInclude it with:
<xi:include href="oxf:/gaga.xml" xxi:omit-xml-base="true" />
But I can't think of a way to XInclude a file which would be in your application's war (remember: the code executing the XInclude is running in the context of the Orbeon's war).
Alex