Hello Steve,
Thanks for the tips.
I also found this: http://wiki.orbeon.com/forms/how-to/execute-xslt-from-xforms; I guess that's somewhat in line with your suggestions. I like the idea of using an XPL as a service. Any clue if this will work?
Best, Robin
-----Original message-----
From: Steve Bayliss <[hidden email]>
Sent: Mon 01-02-2010 13:11
To: [hidden email];
Subject: [ops-users] RE: RE: Re: RE: Re: How to use output of a pipeline?
FYI it's the second approach I've used a number of times, a page with a model, but no view, and the model serializes the output (with a view you've got the risk of the epilogue picking up the output and doing its thing on it) - so I'd recommend you go for the approach in the link below.Your pipeline should have an "instance" input to pick up the submission from the page; and no output - then use oxf:xml-converter followed by oxf:http-serializer to send the output back to the page. (in the link, the example uses xml-serializer, if you read the notes here http://www.orbeon.com/orbeon/doc/processors-serializers#legacy-serializers the recommended approach now is to first use a converter and then use the http serializer).Steve-----Original Message-----
From: Steve Bayliss [mailto:[hidden email]]
Sent: 01 February 2010 11:57
To: [hidden email]
Subject: [ops-users] RE: Re: RE: Re: How to use output of a pipeline?You should be able to just define a page with a view that references your pipeline - if your view produces a "data" output then that will be received as a response to your submission.Alternatively you can do it with a page with a model, and serialise the output - like this: http://www.orbeon.com/orbeon/doc/reference-page-flow#d21e2591-----Original Message-----
From: Robin Diederen [mailto:[hidden email]]
Sent: 01 February 2010 11:28
To: [hidden email]
Subject: [ops-users] Re: RE: Re: How to use output of a pipeline?Hello Alexandra,
Thanks anyway :-).
In case anybody else here knows how to get this data from the pipeline, I'm really interested.
Best, Robin
-----Original message-----
From: Alexandru Ionita <[hidden email]>
Sent: Mon 01-02-2010 12:27
To: [hidden email];
Subject: [ops-users] Re: RE: Re: How to use output of a pipeline?
Hello Robin,yes, this might work quite good, but unfortunately I don't have experience with page-flow, since I'm using the xform integrated in a J2EE (JSP/Spring) application, outside Orbeon.regards,Alexandru
On Mon, Feb 1, 2010 at 13:21, Robin Diederen <[hidden email]> wrote:
Hi Alexandra,
Thanks for the quick response.
I doubt however if that would work for my case. This if the "flow" I'm trying to achieve:
Enter data on xform -> page flow sends data to xpl -> xpl fires -> xpl sens data to page flow -> page flow redirects and sends data to xform -> xform picks up data and displays
Isn't this possible? Or is some other way better?
Best, Robin
-----Original message-----
From: Alexandru Ionita <[hidden email]>
Sent: Mon 01-02-2010 12:07
To: [hidden email];
Subject: [ops-users] Re: How to use output of a pipeline?
Hello Robin,I'm not sure that you can consume the response of a webservice from another xform instead of the calling source xform.But, if you want to consume the response of the webservice in the same xform, watch here:xxforms:call-xpl<xf:trigger appearance="xxforms:link"><xf:label class="button"><xhtml:span class="Prufen">Prüfen</xhtml:span></xf:label><xf:action ev:event="DOMActivate"><xf:insert nodeset="instance('formCheckMessages')"origin="xxforms:call-xpl('<<link_to_the_XPL_file>>','formData',instance('userResponse'), 'checkMessages')"/></xf:action></xf:trigger>by this, you are inserting the response of a pipeline into a defined instance.If this is what you are looking for, don't hesitate to ask for more details.regards,Alexandru
On Mon, Feb 1, 2010 at 12:30, Robin Diederen <[hidden email]> wrote:
Hello all,
I have this pipeline which produces a XML document after doing some SOAP calls; the pipeline is fired by a submission from a Xforms document.
Now I to use this XML document on another Xforms document and I’m wondering how I can access this data.
From my pageflow:
<page id="search-general-submit" path-info="/search/search-general-submit" >
<action action="search-general-perform.xpl">
<result page="search-general-result" transform="oxf:xslt">
<data xsl:version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:copy-of select="doc('input:instance')"></xsl:copy-of>
</data>
</result>
</action>
</page>
My guess would be that I should an xforms:instance element in the consuming Xforms document referring to the data generated by the pipeline. Is that correct? If so, how would I refer to this data?
Best, Robin
--
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
--
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
Free forum by Nabble | Edit this page |