Hi Julien,
Thanks for the response. I updated my
struts.xpl but got following error
class
org.orbeon.oxf.common.OXFException
Message Cannot load processor
'oxf/processor/fop' because the class implementing this processor
('org.orbeon.oxf.pipeline.processors.FOPSerializer') cannot be found
Java
Exception org.orbeon.oxf.common.OXFException: Cannot load processor
'oxf/processor/fop' because the class implementing this processor
('org.orbeon.oxf.pipeline.processors.FOPSerializer') cannot be
found
at
org.orbeon.oxf.pipeline.processors.XMLProcessorRegistry$1.createInstance(XMLProcessorRegistry.java:59)
at
org.orbeon.oxf.pipeline.processors.PipelineProcessor.createConfigFromAST(PipelineProcessor.java:187)
-----Original
Message-----
From: Julien Mercay [mailto:[EMAIL PROTECTED]]
Sent: Friday,
August 15, 2003 5:54 PM
To: OXF Users
Subject: Re: FOP
Serializer
Hi Prateek,
I understand that you are using Struts
in conjunction with OXF. You have to modify struts.xpl to add a FOP Serializer,
and to use it when XSL-FO data is detected. I attached to this email a modified
struts.xpl with the following change:
<p:when
test="/fo:root">
<!--
Auto-detected XSL-FO. Use the FOP Serializer
-->
<p:processor
uri="oxf/processor/fop">
<p:input
name="config">
<config/>
</p:input>
<p:input name="data"
href=""/>
</p:processor>
</p:when>
This
instructs OXF to use a FOP Serializer when the document coming from the action
contains a "fo:root" root element. You can of course add a stylesheet before the
FOP Serializer to transform an intermediate language (like the d:document into
XSL-FO.
Regards,
Julien
Prateek Mittal wrote:
>
Hi,
> I need to generate a pdf document from a XML. I am
trying to make
> use of 'FOP Serializer'. Can anyone provide some details,
how can I
> make use of it and generate a pdf doc.
> Do
I need to replace html-serializer with text-serializer
> (FOPSerializer)
in struts.xpl or I can just add it there? I don't want
> to loose ability
of generating html pages either. A short example
> could be very
helpful.
>
> Regards,
> Prateek
>
>
_______________________________________________
> oxf-users mailing
list
> [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
_______________________________________________ oxf-users mailing list [EMAIL PROTECTED] http://mail.orbeon.com/mailman/listinfo/oxf-users
