Yes, but you actually have to call the output of the action "data". This is the specified interface of action pipelines. This holds for model, view, and form pipelines as well: they all have well-defined interfaces, and you have to conform to those (plus or minus the optional inputs and outputs). For consistency, they are always called "data" or "instance".

-Erik

Peter Charles wrote:

Just to be clear: this is regardless of what you have named the output
of the pipeline referenced by the action attribute?

Thanks

Peter

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Erik Bruchez
Sent: Thursday, March 11, 2004 9:28 AM
To: OXF Users
Subject: Re: Accessing the output of an action="action.xpl"

Peter,

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

_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to