Hallo Mark.
This is my pipeline for test purposes:
<map:match pattern="test.pdf">
<map:generate type="html"
src="context://reports/forms/reports_success_jx.xml" />
<map:transform src="context://reports/resources/xhtml2fo.xsl" />
<map:serialize type="fo2pdf" mime-type="application/pdf" />
</map:match>
My idea was to have a link on the results page that triggered the
pipeline above.
This test pipeline makes me run into two problems:
1st- the printed pdf page hasn't the results submitted by the form
2nd - the "print to pdf link" is included in the pdf!
As a solution to 1st i tried a pipeline with
<map: generate type="html" src="#{$cocoon/continuation/id}" />
Problem: didn't work :(
Solutions to 2nd could be:
(a) to remove the code responsible for link translation in the xsl stylesheet
Problem: what if in the future i need links in the pdf??
(b) having a results page in a frame, and the link to pdf generation on another
frame.
Problem: JxTemplateGenerator "doesn't like"(that it,
doesn't generate) the frames...Maybe i should try xsp...
Thanks,
M.Thermos
On 7/28/05, Mark Lundquist <[EMAIL PROTECTED]> wrote:
>
> On Jul 28, 2005, at 7:37 AM, Michael Thermos wrote:
>
> > Hallo. Again.
>
> Hiya :-)
>
> >
> > I'm using JXTemplateGenerator to pass values from the form to the
> > results page.
> > Here is a bit of code:
> > <map:match pattern="*-success-pipeline.jx">
> > <map:generate type="jx" src="forms/{1}_success_jx.xml"/>
> > <map:call resource="simple-page2html">
> > <map:parameter name="file" value="forms/{1}_success_jx.xml"/>
> > </map:call>
> > <map:serialize/>
> > </map:match>
> >
> > My results page from a cform(that is after submiting the form) has an
> > url like
> > http://localhost:8080/cocoon/test/
> > 6267201137490a377a5f79257a3810544b391352.continue
> >
> > I'm trying to use a genarator like
> > <map: generate type="html" src="#{$cocoon/continuation/id}" />
>
> Ah, no... that doesn't have any meaning.
>
> You need a pipeline that looks something like this (maybe not exactly,
> it depends how you're structuring your URI space, subsitemaps etc.):
>
> <map:match pattern="*.continue">
> <map:call continuation="{1}"/>
> </map:match>
>
> Please post your flowscript function that invokes the form (and should
> then do something after the form is submitted), because I suspect
> you're going to have some problems there too, so might as well get it
> out on the table now :-)
>
> —ml—
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>