Hi,
I am trying to produce PDF using FOP and Orbeon. I have a simple XForms which is just an input box and a submission button: the submission button calls an XPL which queries an eXist db and then applies a stylesheet to the results to convert them to XFO and passes that back to the data stream: <p:processor name="oxf:xslt"> <p:input name="data" href="#family"/> <p:input name="config" href="rec2xfo.xsl"/> <p:output name="data" ref="data"/> </p:processor> I note that this is basically how the PDF example using FOP works: however, when I run it, I am not getting back a PDF document. How can I capture this? Cheers, Matthew -- 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 |
Administrator
|
Matthew Graham wrote:
> Hi, > > I am trying to produce PDF using FOP and Orbeon. I have a simple XForms > which is just an input box and a submission button: the submission > button calls an XPL which queries an eXist db and then applies a > stylesheet to the results to convert them to XFO and passes that back to > the data stream: > > <p:processor name="oxf:xslt"> > <p:input name="data" href="#family"/> > <p:input name="config" href="rec2xfo.xsl"/> > <p:output name="data" ref="data"/> > </p:processor> > > I note that this is basically how the PDF example using FOP works: > however, when I run it, I am not getting back a PDF document. How can I > capture this? don't think you are doing. Check the oxf:xslfo-converter processor. It is used in the email example (get-pdf-data.xpl). -Erik -- Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- 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 |
Hi,
The oxf:xslfo-converter processor is called automatically by the OPS epilogue-servlet.xpl when it encounters fo:root as the root element of the returned document. The problem I was having was that in the XForms, I had a replace attribute on the submission control: removing this makes it all work. Cheers, Matthew Erik Bruchez wrote: > Matthew Graham wrote: >> Hi, >> >> I am trying to produce PDF using FOP and Orbeon. I have a simple >> XForms which is just an input box and a submission button: the >> submission button calls an XPL which queries an eXist db and then >> applies a stylesheet to the results to convert them to XFO and passes >> that back to the data stream: >> >> <p:processor name="oxf:xslt"> >> <p:input name="data" href="#family"/> >> <p:input name="config" href="rec2xfo.xsl"/> >> <p:output name="data" ref="data"/> >> </p:processor> >> >> I note that this is basically how the PDF example using FOP works: >> however, when I run it, I am not getting back a PDF document. How can >> I capture this? > > You probably have to convert your XSL-FO into PDF at some point, which > I don't think you are doing. Check the oxf:xslfo-converter processor. > It is used in the email example (get-pdf-data.xpl). > > -Erik > > ------------------------------------------------------------------------ > > > -- > 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 > -- 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 |
Free forum by Nabble | Edit this page |