Re: Re: XInclude not working in Separate Deployment [Solved - sortof]

Posted by Alessandro Vernet on
URL: https://discuss.orbeon.com/Orbeon-doesn-t-copy-xxforms-rows-xxforms-cols-and-xxforms-size-in-repeated-elements-tp278234p584345.html

Betty,

On Fri, Nov 6, 2009 at 1:11 PM, Betty Harvey <[hidden email]> wrote:

> I think I have a workable solution but the problem - it isn't optimal
> but will allow you to find files in relationship to Tomcat.
>
> In the META-INF directory the context.xml file is:
>
> <Context path="/test" docBase="${catalina.home}/webapps/test"
> crossContext="true" />
>
> The XInclude file is brought into the form with the context of
> webapps:
>
> <xi:include href="webapps/test/SimpleForm/test.xml"
> xxi:omit-xml-base="true"/>
Another way to deal with this, which is maybe less sensitive to what
the "current directory" is when you start Tomcat, is to use the JSP
include directive to do the inclusion. I put up a little write-up on
the subject on the wiki:

http://wiki.orbeon.com/forms/doc/developer-guide/xforms-with-java-applications#TOC-File-inclusions-with-separate-deplo

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet