Hi group,
I was hoping someone has encountered this, and found the solution
already (my Googling didn't return any solution)
Issue:
I can't get FOP to "parse" my xml:fo file, (a simple Hello World file)
to PDF. using:
Bea Web Server
Apache (2.0.45)* (I believe, not too sure on the exact version)
Cocoon 2.0.3, using the Xerces parser
FOP (from the above cocoon pkg.)
So, my XML is fine, I can serve it up ok....
My XSL is fine, I can transform to xml:fo (I've also successfully
transformed many to HTML, SVG, etc.)
...but I just get text/html in the browser... no PDF...
With the following error in my log.
<Error> <HTTP> <BEA-101017> <[ServletContext (...)] Root cause of
ServletException.
java.lang.NoSuchMethodError:
org.apache.fop.apps.Driver.getParserClassName()Ljav
a/lang/String;
at
org.apache.fop.configuration.ConfigurationReader.createParser(Configu...
Anyone spot the missing needle in my haystack that can save me pulling
out my hair?
Cheers and TIA,
Steve
PS The following is a snip from my Cocoon sitemap, and an example xml:fo
file...
<!-- In my serializers -->
<map:serializer name="fo2pdf"
src="org.apache.cocoon.serialization.FOPSerializer"
mime-type="application/pdf"/>
<!--
In my pipeline (note, all XML files in this directory, will be
matching name for name, with an xsl file)
E.g. helloworld.xml + helloworld.xsl, foo.xml + foo.xsl
-->
<map:match pattern="**.xml">
<map:act type="dfc-page" src="{0}"/>
<map:generate/>
<map:transform src="{1}.xsl"/>
<map:serialize type="fo2pdf"/>
</map:match>
<!-- sample xml output... -->
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="simple" page-height="29.7cm"
page-width="21cm" margin-left="2.5cm" margin-right="2.5cm">
<fo:region-body margin-top="3cm"></fo:region-body>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="simple">
<fo:flow flow-name="xsl-region-body">
<fo:block background-color="blue">
<fo:inline>Hello World</fo:inline>
</fo:block>
<fo:block background-color="red">
<fo:inline font-weight="bold">Hello Again</fo:inline>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]