I guess that this is because your PDF output goes through a portlet. When the built-in examples portal tries to parse the resulting XML, it fails.

Try instead to load your PDF file outside the portlet. See for example the following line the page-flow.xml of the reports example:

<page id="report-pdf" path-info="/example-resources/reports/report-pdf" model="model.xpl" view="pdf.xpl"/>

The examples portal automatically handles the URLs starting with /example-resources/.

-Erik

[EMAIL PROTECTED] wrote:

I would like to generate a pdf file with the xslfo-serializer processor generated within a page-flow that is called from an embedding portlet.


I am calling the pipeline the following way:
<action when="/form/action = 'illustration'" action="/organizer/pages/case/edit/pageparts/chart/illustrationActionModel.xpl"/>


(there is no result page)

(and there is no output of the pipeline, the xslfo-serializer processor is the last processor in the pipeline)

When the processor (xslfo-serializer) had run, either the pdf file, or the "save-open dialog box" did not appear in my browser, in spite of the fact that, the processor appears to run successfully, and then I got the following exexception:

org.orbeon.oxf.common.ValidationException: null, line 1, column 1 : Content is not allowed in prolog. : null, line 1, column 1: Content is not allowed in prolog.
at org.orbeon.oxf.processor.StreamInterceptor.parse(StreamInterceptor.java:184)


at org.orbeon.oxf.portlet.processor.PortletIncludeGenerator$1.readImpl(PortletIncludeGenerator.java:191)

at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:956)
at org.orbeon.oxf.processor.ProcessorImpl$ProcessorOutputImpl.read(ProcessorImpl.java:1117)




What do you think I could do?



------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ orbeon-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to