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]

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";
                xmlns:exsl="http://exslt.org/common";
                version="1.0"
                exclude-result-prefixes="exsl">
    <xsl:import href="docbook.xsl"/>
    <!-- EarthLink local customizations! -->
    <xsl:param name="draft.mode" select="no"/>
    <xsl:param name="fop.extensions" select="1"/>
    </xsl:stylesheet>

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!

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


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