In the XUpdate fragment, document('#action') returns the output of the action, while document('#instance') return the current XForms instance.
-Erik
Peter Charles wrote:
Hello,
If I have an action.xpl that declares an output
<p:param name="data" type="output"/>
and this action.xpl is called by
<action when="/form/selection = 'selected'" action="action.xpl">
Do I have access to the action.xpl pipeline output in any way?
I have tried:
<xu:update select="/form" xmlns:xu="http://www.xmldb.org/xupdate"> <xu:value-of select="document('#data')"/> </xu:update>
but this does not seem to work.
I basically would like to add the output of the action.xpl to the current page.
I have looked over the web app controller documentation but have found
the coverage of 'action' limited.
This section:
A <result> element can optionally contain XUpdate instructions. If present the XUpdate is run against the XForms instance. The XForms instance is either the current instance if the page attribute is missing or the XForms instance of the corresponding page otherwise. The updated instance is used for the rest of the processing if the page attribute is missing, or passed to the other page otherwise.
Says that I can xupdate the current page's xform instance document.
In the controller file http://www.orbeon.com/oxf/examples/source?src=config/controller.xml
I see the use of <xu:value-of select="document('#instance')"/>
and <xu:value-of select="document('#action')"/>
What is being referenced by #instance and #action?
Thanks
Peter
_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
