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

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

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"/>

Seems like there should be a way of just specifying 'href="text.xml"'
and there probably is something else in the Tomcat configuration.

Betty

> The XInclude does not resolve correctly in the separate
> deployment.  I am using Orbeon dev-post-3.7.1.200910230248
> distribution.
>
> I have a form that uses several XInclude statements for standard
> section.  Right now all the XML fragments are in the save directory
> as the form (this works when located directly under Orbeon).
>
> XInclude Statement:
>
> <xi:include href="general.xml" xxi:omit-xml-base="true"/>
>
> Error message:
>
> /usr/share/tomcat5/general.xml (No such file or directory)
>
> Is there anyway to get around this problem?
>
> Thanks!
>
> Betty
>
>
>
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
> Betty Harvey                         | Phone: 410-787-9200 FAX: 9830
> Electronic Commerce Connection, Inc. |
> [hidden email]                    | Washington,DC XML Users Grp
> URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
> /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/
>

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone: 410-787-9200 FAX: 9830
Electronic Commerce Connection, Inc. |
[hidden email]                    | Washington,DC XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug/
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/


--
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