OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] docbook-xsl producing invalid FO? :(

On Tue, Mar 16, 2004 at 08:03:10AM -0800, John L. Clark wrote:
> >   /usr/local/fop-0.20.5/fop.sh -d -xsl xsl/html/docbook.xsl -xml xsl/RELEASE-NOTES.xml -pdf index.pdf
> > Results in no idex.pdf being output.
> Right; the XSLT specified (using the -xsl option) should output FO when
> using the xml input (-xml), which FOP will then use to produce your
> PDF.  I think you want something like 'xsl/fo/docbook.xsl' instead of
> 'xsl/html/docbook.xsl'; the latter produces html output, and FOP doesn't
> know what to do with that.

Thanks to John and the others who replied.
This fixed one part of my problem.

Hopefully this message in the archives will help someone else too.
I had to also:

run 'fop.sh -d -xsl xsl/fo/local-chunk.xsl -xml file.xml -pdf output.pdf'

  This will check the validity of your document against the dtd
  specified in the DOCTYPE line in the top of the xml file.

my 'xsl/fo/local-chunk.xsl' looks like:
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
    <xsl:import href="docbook.xsl"/>
    <!-- EarthLink local customizations! -->
    <xsl:param name="draft.mode" select="no"/>
    <xsl:param name="fop.extensions" select="1"/>

This turns off draft mode, and the fop.extensions makes those 'relative
align' and 'baseline' noises go away.

After I made sure my XML was 100% valid, and used that local
customization stuff, it produced a VERY nice PDF :-)

Thank you!

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]