Hello;

I want to switch 1.1 to 2.0 but when converting Docbook5 to PDF I'm getting;

docbook/fo/docbook.xsl; Line #312; Column #54;
java.lang.NullPointerException

There is no problem with docbook's latest docbook.xsl but with my custom
xsl, it gives me NLP. But, there is no problem with fop1.1 also.

Example docbook xml content that produces NLP;

<?xml version="1.0"
encoding="UTF-8"?><?asciidoc-toc?><?asciidoc-numbered?><article xmlns="
http://docbook.org/ns/docbook"; xmlns:xlink="http://www.w3.org/1999/xlink";
version="5.0" xml:lang="en">
<info>
<title>Selam</title>
<date>2015-08-17</date>
</info>
<section xml:id="_selam">
<title>Selam</title>
<note>
<simpara>Hello world</simpara>
<programlisting language="javascript" linenumbering="unnumbered">//
code</programlisting>
</note>
</section>
</article>

Used xsl is;

https://github.com/asciidocfx/AsciidocFX/blob/fop2/conf/docbook-config/fo-pdf.xsl

If I change fo-pdf.xsl as follows, then the issue is resolved, but how can
give bottom padding and bottom line for that case ?;

https://github.com/asciidocfx/AsciidocFX/blob/fop2/conf/docbook-config/fo-pdf.xsl#L152

Make zero bottom padding

https://github.com/asciidocfx/AsciidocFX/blob/fop2/conf/docbook-config/fo-pdf.xsl#L164

Remove line 164

https://github.com/asciidocfx/AsciidocFX/blob/fop2/conf/docbook-config/fo-pdf.xsl#L251

Make zero bottom padding

Thanks

-- 
Rahman USTA
Istanbul JUG
https://github.com/rahmanusta <http://www.kodcu.com/>

Reply via email to