XForms/XPL - passing XML from XPL output to input form instance

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

XForms/XPL - passing XML from XPL output to input form instance

Tanya Gray (Oxford)
Hi,

I have an xforms input form. Following form submission, I would like to pass a status message back to the input form from an XPL pipeline.

I have <status>status message</status> element in the xforms instance defined in the input form .xsl file, however, it's not clear how to update the value of the <status/> tag following the execution of a series of processors in an xpl pipeline.

Is anyone able to provide an example or explanation on how to achieve this?

thank you v much
Tanya






--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: XForms/XPL - passing XML from XPL output to input form instance

Alessandro  Vernet
Administrator
Hi Tanya,

If I understand you correctly, you are doing a submission
replace="all" and displaying again the same page. You have a model for
this page which generates a status message based on the submitted
instance. You would like make this status message visible to XForms,
so you can for instance display it with <xforms:output>.

You can do this by using XInclude in your view, for instance:

<xforms:instance id="status">
    <xi:include href="input:data"/>
</xforms:instance>

Here "input:data" is the output of your model. If that document looks
like <status>status message</staatus>, you can then display it in your
view with <xforms:output ref="instance('status')"/>.

Alex

On 11/3/05, Tanya Gray <[hidden email]> wrote:

> Hi,
>
> I have an xforms input form. Following form submission, I would like to pass a status message back to the input form from an XPL pipeline.
>
> I have <status>status message</status> element in the xforms instance defined in the input form .xsl file, however, it's not clear how to update the value of the <status/> tag following the execution of a series of processors in an xpl pipeline.
>
> Is anyone able to provide an example or explanation on how to achieve this?
>
> thank you v much
> Tanya
>
>
>
>
>
>
>
> --
> 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
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>
>
>

--
Blog (XML, Web apps, Open Source): http://www.orbeon.com/blog/



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet