[publican-list] Screen and Programlisting oddities in Publican 2.8

Jeff Fearn jfearn at redhat.com
Thu Mar 14 23:47:35 UTC 2013


On 03/14/2013 10:18 PM, Norman Dunbar wrote:
> On 14/03/13 11:40, Norman Dunbar wrote:
>
>> I'm trawling through the release notes on the Docbook web site. It seems
>> I'm a few versions behind.
>>
>> What version did you use to correctly render in P3 please?
>
> Ok, saved my existing version and installed the very latest from Docbook
> itself. 1.78.0. No change here I'm afraid.

I'm using docbook-style-xsl-1.77.1-3, I think anything > 1.77.1 should 
be fine.

It's particularly odd since:

$ diff -s publican/trunk/publican/datadir/xsl/pdf.xsl 
publican-git/publican/datadir/xsl/pdf.xsl
Files publican/trunk/publican/datadir/xsl/pdf.xsl and 
publican-git/publican/datadir/xsl/pdf.xsl are identical

That's comparing the old SVN repo to devel branch in the git repo.

Can you compare the content between ./tmp/$lang/xml_tmp/$file and 
./tmp/$lang/xml/$file

The main difference between the two is that XmlClean is used to move 
files between xml_tmp and xml ... although I'd expect anything broken in 
that step to affect all outputs.

You could try making a basic PDF XSL file and copying over content from 
pdf.xsl to see if anything changes.

$ sudo gvim /usr/share/publican/xsl/pdf2.xsl

<?xml version='1.0'?>
<!DOCTYPE xsl:stylesheet []>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
		version='1.0'
		xmlns="http://www.w3.org/TR/xhtml1/transitional"
 >
<xsl:import 
href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
<xsl:param name="tablecolumns.extension" select="0"/>
</xsl:stylesheet>


$ publican build --formats pdf2

If the first run doesn't change anything then I'd suspect the XML 
getting munged or the behaviour is not publican specific. It would be 
extra odd if the XML is getting munged but only the PDF is being affected.

Cheers, Jeff.

-- 
Jeff Fearn <jfearn at redhat.com>
Senior Software Engineer
Infrastructure Engineering & Development (AEU)
Red Hat Asia Pacific Pty Ltd
GPG: 0x0357E8F0




More information about the publican-list mailing list