I created a form using Orbeon form builder, and i included in its form instance the content of an xml file using :
<xi:include href="oxf:/path/file.xml" xxi:omit-xml-base="true" />
When i save the form in form builder and edit it, i get a new form, and when i publish it and run it in form runner i get a blank page.
Can you tell me please what’s wrong with the xi:include ?
If you want to include the whole content of an external file as the instance, use:
Here we have the model instance xml in external file at
/path/file.xmland we are using this file into our form and have named the model instance asid="main-model-instance"If you need to add part of the instance from external file, then insert that piece dynamically during
xforms-model-construct-doneevent, e.g.: