Hi,
A busy day on the list!
I am trying to dynamically generate the XForm instance using a pipeline:
<page id="standardresults" path-info="/query/standardresults" xforms="query/results-xforms-model.xml" view="query/results-standard-view.xsl">
<action when="/form/action = 'tryit'">
<result page="sampleclient"/>
</action>
</page>
<page id="sampleclient" path-info="/sampleclient" xforms="query/sampleclient-xforms-model.xpl" view="query/sampleclient-view.xsl">
</page>
where query/sampleclient-xforms-model.xpl builds the:
<xforms:model> <xforms:instance> ... </xforms:instance> <xforms:submission method="post"/> </xforms:model>
based on the instance document from the standardresults page - it makes a query against the database. The instance document is of the form:
<form> <title/> <endpoint/> <param name=""/> </form>
where title and endpoint have values and there can be a variable number of param elements. The problem I have is that it is not get passed to the view properly. If I specifiy the output of the pipeline as:
<p:param type="output" name="data"/> then the instance document seen by the view is just:
<form>
<title/>
<endpoint/>
</form>
where title and endpoint are empty. However, if I use:
<p:param type="output" name="instance"/>
then I get an exception:
Type class org.orbeon.oxf.common.ValidationException
Message Root element of XForms model must be in namespace http://www.w3.org/2002/xforms
Location
Line N/A
Column N/A
Stack Trace
Class Name Method Name File Name Line Number
org.orbeon.oxf.processor.xforms.Model$1 startElement Model.java 69
in spite of the namespace of root element model being defined and qualified as xforms.
Am I doing this the right way?
Cheers,
Matthew
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user
