xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremias Maerki <...@jeremias-maerki.ch>
Subject Re: What is the status of fop ?
Date Wed, 27 Jan 2010 14:54:45 GMT
I'd suggest:
- to upgrade to the latest FOP release (0.95). You seem to be using an
older release.
- to avoid running FOP with GCJ or any other GNU Classpath based JVM
because its XML support has proven to be quite buggy.

I'm happily producing PDFs from DocBook XSL 1.75 with FOP 0.95 and PNG
images.

On 27.01.2010 15:38:21 Mathieu Malaterre wrote:
> Thanks for the hint this is indeed reported in the FAQ:
> 
> http://xmlgraphics.apache.org/fop/faq.html#saxexception-mismatch
> 
> However I am already using the latest of xalan:
> 
> $ apt-cache policy libxalan2-java
> libxalan2-java:
>   Installed: 2.7.1-5
>   Candidate: 2.7.1-5
>   Version table:
>  *** 2.7.1-5 0
>         200 http://ftp.fr.debian.org testing/main Packages
>         100 http://ftp.fr.debian.org unstable/main Packages
>         100 /var/lib/dpkg/status
>      2.7.1-2 0
>         500 http://ftp.fr.debian.org lenny/main Packages
> 
> 
> Is there anything else I should be looking at ?
> 
> Thanks again
> 
> On Wed, Jan 27, 2010 at 3:21 PM, Pascal Sancho <pascal.sancho@takoma.fr> wrote:
> > Hi Mathieu,
> >
> > PNG is supported by FOP (see [1] for further information)
> >
> > Reading your log, there is something wrong in your XSL-FO:
> > "WARNING: Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format)
> >
> > vs. root (http://www.w3.org/1999/XSL/Format)"
> >
> > You should have a look into that direction.
> > That is confirmed by the rest of the error message, thrown during the Xalan stage.
> >
> > [1] http://xmlgraphics.apache.org/fop/0.95/graphics.html#png
> >
> > Pascal
> >
> > Mathieu Malaterre a écrit :
> >> Hi there,
> >>
> >>   I am currently trying to check if my group can start using docbook
> >> for writing high quality documentation. As far as I understand there
> >> are three competitors dblatex, xmlroff and fop. dblatex is a strange
> >> beast as it 'just works', but you cannot control anything (PNG file
> >> are degraded).
> >>
> >> I am now trying fop on my debian system:
> >>
> >> $ fop  -xsl /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl
> >> -pdf article.pdf -xml in.xml
> >>
> >> which returns the following error (*).
> >>
> >> The input example was simply:
> >>
> >> $ cat in.xml
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
> >> "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
> >> <article>
> >>   <articleinfo>
> >>     <title>title</title>
> >>     <author>
> >>       <firstname>author</firstname>
> >>       <surname>author2</surname>
> >>       <affiliation>
> >>         <orgname>bla</orgname>
> >>       </affiliation>
> >>     </author>
> >>     <pubdate>2001</pubdate>
> >>   </articleinfo>
> >>   <section>
> >>     <title>section 1</title>
> >>     <para>text section 1</para>
> >>     <figure>
> >>       <title>first</title>
> >>       <mediaobject>
> >>         <imageobject>
> >>           <imagedata fileref="graphics2.png"/>
> >>         </imageobject>
> >>       </mediaobject>
> >>     </figure>
> >>   </section>
> >> </article>
> >>
> >>
> >> Could someone please confirm whether including PNG file is supported or not
?
> >>
> >> Thanks,
> >> --
> >> Mathieu
> >> Ps: I haven't yet tried xmlroff
> >>
> >> (*)
> >> Jan 27, 2010 3:02:25 PM org.apache.fop.cli.InputHandler warning
> >> WARNING: javax.xml.transform.TransformerException: Making portrait
> >> pages on USletter paper (8.5inx11in)
> >> Jan 27, 2010 3:02:25 PM org.apache.fop.cli.InputHandler warning
> >> WARNING: javax.xml.transform.TransformerException: Read
> >> /usr/share/doc/docbook-xsl/README.Debian.gz section 5(a).
> >> Jan 27, 2010 3:02:26 PM org.apache.fop.hyphenation.Hyphenator getHyphenationTree
> >> SEVERE: Couldn't find hyphenation pattern en
> >> Jan 27, 2010 3:02:26 PM org.apache.fop.fo.FOTreeBuilder$MainFOHandler endElement
> >> WARNING: Mismatch: page-sequence (http://www.w3.org/1999/XSL/Format)
> >> vs. root (http://www.w3.org/1999/XSL/Format)
> >> Jan 27, 2010 3:02:26 PM org.apache.fop.fo.FOTreeBuilder fatalError
> >> SEVERE: javax.xml.transform.TransformerException: java.lang.NullPointerException
> >> Jan 27, 2010 3:02:26 PM org.apache.fop.cli.Main startFOP
> >> SEVERE: Exception
> >> javax.xml.transform.TransformerException: java.lang.NullPointerException
> >>         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)
> >>         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
> >>         at org.apache.fop.cli.Main.startFOP(Main.java:166)
> >>         at org.apache.fop.cli.Main.main(Main.java:197)
> >>
> >> ---------
> >>
> >> ; SystemID: file:/usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl;
> >> Line#: 223; Column#: 59
> >> javax.xml.transform.TransformerException: java.lang.NullPointerException
> >>         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2405)
> >>         at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:162)
> >>         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
> >>         at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
> >>         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
> >>         at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
> >>         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
> >>         at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
> >>         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
> >>         at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2270)
> >>         at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1356)
> >>         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
> >>         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1273)
> >>         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1251)
> >>         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
> >>         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
> >>         at org.apache.fop.cli.Main.startFOP(Main.java:166)
> >>         at org.apache.fop.cli.Main.main(Main.java:197)
> >> Caused by: java.lang.NullPointerException
> >>         at org.apache.fop.render.pdf.FopPDFImage.setup(FopPDFImage.java:144)
> >>         at org.apache.fop.pdf.PDFDocument.addImage(PDFDocument.java:794)
> >>         at org.apache.fop.render.pdf.PDFRenderer.putImage(PDFRenderer.java:1725)
> >>         at org.apache.fop.render.pdf.PDFRenderer.renderImage(PDFRenderer.java:1652)
> >>         at org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:748)
> >>         at org.apache.fop.render.AbstractPathOrientedRenderer.renderViewport(AbstractPathOrientedRenderer.java:541)
> >>         at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:631)
> >>         at org.apache.fop.render.pdf.PDFRenderer.renderInlineArea(PDFRenderer.java:1316)
> >>         at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:606)
> >>         at org.apache.fop.render.pdf.PDFRenderer.renderLineArea(PDFRenderer.java:1307)
> >>         at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:532)
> >>         at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:582)
> >>         at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1300)
> >>         at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:522)
> >>         at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:582)
> >>         at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1300)
> >>         at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:522)
> >>         at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:582)
> >>         at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1300)
> >>         at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:522)
> >>         at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:427)
> >>         at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:406)
> >>         at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:340)
> >>         at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:285)
> >>         at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:258)
> >>         at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:232)
> >>         at org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:757)
> >>         at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:120)
> >>         at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:424)
> >>         at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:146)
> >>         at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:233)
> >>         at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:145)
> >>         at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
> >>         at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
> >>         at org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:263)
> >>         at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1401)
> >>         at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
> >>         at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
> >>         at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
> >>         at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
> >>         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
> >>         ... 17 more
> >> ---------
> >> java.lang.NullPointerException
> >>         at org.apache.fop.render.pdf.FopPDFImage.setup(FopPDFImage.java:144)
> >>         at org.apache.fop.pdf.PDFDocument.addImage(PDFDocument.java:794)
> >>         at org.apache.fop.render.pdf.PDFRenderer.putImage(PDFRenderer.java:1725)
> >>         at org.apache.fop.render.pdf.PDFRenderer.renderImage(PDFRenderer.java:1652)
> >>         at org.apache.fop.render.AbstractRenderer.renderViewport(AbstractRenderer.java:748)
> >>         at org.apache.fop.render.AbstractPathOrientedRenderer.renderViewport(AbstractPathOrientedRenderer.java:541)
> >>         at org.apache.fop.render.AbstractRenderer.renderInlineArea(AbstractRenderer.java:631)
> >>         at org.apache.fop.render.pdf.PDFRenderer.renderInlineArea(PDFRenderer.java:1316)
> >>         at org.apache.fop.render.AbstractRenderer.renderLineArea(AbstractRenderer.java:606)
> >>         at org.apache.fop.render.pdf.PDFRenderer.renderLineArea(PDFRenderer.java:1307)
> >>         at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:532)
> >>         at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:582)
> >>         at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1300)
> >>         at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:522)
> >>         at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:582)
> >>         at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1300)
> >>         at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:522)
> >>         at org.apache.fop.render.AbstractRenderer.renderBlock(AbstractRenderer.java:582)
> >>         at org.apache.fop.render.pdf.PDFRenderer.renderBlock(PDFRenderer.java:1300)
> >>         at org.apache.fop.render.AbstractRenderer.renderBlocks(AbstractRenderer.java:522)
> >>         at org.apache.fop.render.AbstractRenderer.renderFlow(AbstractRenderer.java:427)
> >>         at org.apache.fop.render.AbstractRenderer.renderMainReference(AbstractRenderer.java:406)
> >>         at org.apache.fop.render.AbstractRenderer.renderBodyRegion(AbstractRenderer.java:340)
> >>         at org.apache.fop.render.AbstractRenderer.renderRegionViewport(AbstractRenderer.java:285)
> >>         at org.apache.fop.render.AbstractRenderer.renderPageAreas(AbstractRenderer.java:258)
> >>         at org.apache.fop.render.AbstractRenderer.renderPage(AbstractRenderer.java:232)
> >>         at org.apache.fop.render.pdf.PDFRenderer.renderPage(PDFRenderer.java:757)
> >>         at org.apache.fop.area.RenderPagesModel.addPage(RenderPagesModel.java:120)
> >>         at org.apache.fop.layoutmgr.PageSequenceLayoutManager.finishPage(PageSequenceLayoutManager.java:424)
> >>         at org.apache.fop.layoutmgr.PageSequenceLayoutManager.activateLayout(PageSequenceLayoutManager.java:146)
> >>         at org.apache.fop.area.AreaTreeHandler.endPageSequence(AreaTreeHandler.java:233)
> >>         at org.apache.fop.fo.pagination.PageSequence.endOfNode(PageSequence.java:145)
> >>         at org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:378)
> >>         at org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)
> >>         at org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:263)
> >>         at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1401)
> >>         at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
> >>         at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
> >>         at org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:395)
> >>         at org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.java:178)
> >>         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
> >>         at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:162)
> >>         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
> >>         at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
> >>         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
> >>         at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
> >>         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
> >>         at org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:141)
> >>         at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2400)
> >>         at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2270)
> >>         at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1356)
> >>         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
> >>         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1273)
> >>         at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1251)
> >>         at org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)
> >>         at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)
> >>         at org.apache.fop.cli.Main.startFOP(Main.java:166)
> >>         at org.apache.fop.cli.Main.main(Main.java:197)
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> >> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> >>
> >> .
> >>
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> >
> >
> 
> 
> 
> -- 
> Mathieu
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
> 




Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message