Re: submitting non-xml content
Posted by
patrick on
Feb 01, 2011; 2:44pm
URL: https://discuss.orbeon.com/submitting-non-xml-content-tp3244844p3251653.html
hi
it didn't work with what you suggested but i eventually solved it with:
<xforms:setvalue ev:event="xforms-submit-serialize" ref="event('submission-body')">
now i have another problem, how i can set dynamically a value with xforms:setvalue in my XPL?? the value i need to set should be retrieved from a XSL transformation:
<p:processor name="oxf:pipeline">
<p:input name="config" href="transform.xpl"/>
<p:input name="xml" href="#instance" />
<p:output name="xml-clean" id="stripped-instance"/>
</p:processor>
<p:processor name="oxf:xforms-submission">
<p:input name="submission">
<xforms:submission
method="post" resource="
http://test/id/{/myXSLValue}"
xxforms:username="xxx" xxforms:password="xxx"
mediatype="text/plain" serialization="application/x-www-form-urlencoded" omit-xml-declaration="true">
<xforms:setvalue ev:event="xforms-submit-serialize" ref="event('submission-body')" value="{/myXSLValue}">
</xforms:setvalue>
</xforms:submission>
</p:input>
<p:input name="request" href="#stripped-instance">
</p:input>
<p:output name="response" ref="data" />
</p:processor>
{/myXSLValue} is retrieved in the field resource of xforms:submission but NOT in the field value of xforms:setvalue
How can i do ?? Please help!