This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] fo-stylesheets: Bug in bibliography handling?


Hi list,

consider the following document structure:

<book>
  <bookinfo>... (some info)</bookinfo>
  <part id="somepart"><title>Some Part</title>
    ... (some_chapters)
  </part>
  <part id="appendices"><title>Appendixes</title>
    ... (some appendices)
    <bibliography id="literatur"><title>Literatur</title>
      ... (some bibliodivs)
    </bibliography>
    <index/>
  </part>
</book>

Tihs is valid Docbook and chunked HTML is produced as expected. But if I try
to produce PDF with the FO stylesheets, Fop stops with the following
message:

     [snip] ...

     [exec] [ERROR] null
     [exec] org.apache.fop.apps.FOPException
     [exec]     at org.apache.fop.apps.CommandLineStarter.run(Unknown
Source)
     [exec]     at org.apache.fop.apps.Fop.main(Unknown Source)

     [exec] ---------

     [exec] java.lang.NullPointerException
     [exec]     at
org.apache.fop.fo.PropertyManager.getTextDecoration(Unknown Source)
     [exec]     at org.apache.fop.fo.flow.Block.<init>(Unknown Source)
     [exec]     at org.apache.fop.fo.flow.Block$Maker.make(Unknown Source)
     [exec]     at org.apache.fop.fo.FOTreeBuilder.startElement(Unknown
Source)
     [exec]     at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
     [exec]     at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
     [exec]     at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
     [exec]     at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
     [exec]     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
     [exec]     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
     [exec]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
     [exec]     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
     [exec]     at org.apache.fop.apps.Driver.render(Unknown Source)
     [exec]     at org.apache.fop.apps.CommandLineStarter.run(Unknown
Source)
     [exec]     at org.apache.fop.apps.Fop.main(Unknown Source)

     [exec] ---------

     [exec] java.lang.NullPointerException
     [exec]     at
org.apache.fop.fo.PropertyManager.getTextDecoration(Unknown Source)
     [exec]     at org.apache.fop.fo.flow.Block.<init>(Unknown Source)
     [exec]     at org.apache.fop.fo.flow.Block$Maker.make(Unknown Source)
     [exec]     at org.apache.fop.fo.FOTreeBuilder.startElement(Unknown
Source)
     [exec]     at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
     [exec]     at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
     [exec]     at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatc
her.dispatch(Unknown Source)
     [exec]     at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
     [exec]     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
     [exec]     at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown
Source)
     [exec]     at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
     [exec]     at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown
Source)
     [exec]     at org.apache.fop.apps.Driver.render(Unknown Source)
     [exec]     at org.apache.fop.apps.CommandLineStarter.run(Unknown
Source)
     [exec]     at org.apache.fop.apps.Fop.main(Unknown Source)
     [exec] Result: 2

When I change the document as follows, the PDF is pretty generated:

<book>
  <bookinfo><title>Main</title><subtitle>Sub</subtitle>
    <author><firstname>My</firstname><surname>Name</surname></author>
  </bookinfo>
  <part id="ueberblick"><title>Überblick</title>
        &some_chapter;
  </part>
  <part id="appendices"><title>Appendixes</title>
    <appendix id="bibliographien"><title>Bibliographien</title>
      <para>Bug?</para>
        <bibliography id="literatur"><title>Literatur</title>
            ... (some bibliodivs)
        </bibliography>
      </appendix>
    <index/>
  </part>
</book>

For me it seems as if <bibliography> should be treated the same way as
<appendix> when producing the FO file but is not. Or am I wrong?

Toolchain:

SuSE Linux 8.1
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
Xalan Java 2.4.1
docbook-xsl-1.62.0 (I've also tried docbook-xsl-1.61.0 with the same result)
Apache fop-0.20.4 (I've also tried fop-0.20.5 - see above)

Regards,
Gisbert Amm
http://web.de/

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]