Login  Register

Re: Re: Re: Re: Re: Re: How to wrap a text/plain response to xforms:submission so it becomes XML

Posted by Mahender Didwania on Dec 22, 2010; 3:36pm
URL: https://discuss.orbeon.com/How-to-wrap-a-text-plain-response-to-xforms-submission-so-it-becomes-XML-tp3093245p3160820.html

>input:results2 won't work: the XForms processor used does not support
extra inputs

I thought maybe due to embedded xslt transformation, the extra input will be passed further on as a user-defined-input to the xslt processor, clearly that's not the case.

>You could also try something like this:

<root>
  <in>
    <document-to-submit>...</document-to-submit>
  </in>
  <out/>
</root>

Then use ref="/root/in/*" on the submission.
---

I achieved (kind-of) somewhat the desired output using the code I posted earlier plus:

<p:processor name="oxf:identity">
    <p:input name="data" href="aggregate('PopulateXMLDBResults',#output#xpointer(//Result))"/>
    <p:output name="data" ref="data"/>
</p:processor>

It'll sort-of work as long as there are no other Result elements in the data than the ones I created (I could rename Result to something else more likely to be unique, but I do not have a Result element in any of data I attempt to load to XML DB).

Many thanks for your ideas Erik, much appreciated.

Regards,
Mahender.


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