[dbdoclet] Re: Proposals for release 0.51

On Today at 5:13pm, HR=>Haroon Rafique <haroon.rafique@xxxxxxxxxxx> wrote:

HR> My old process with the annoying errors was something like the
HR> following (obviously I was missing something really fundamental):
HR> 
HR> 1. use com.mf.doclet.docbook.DocBookDoclet to create reference.xml
HR> 2. use com.elharo.xml.xinclude.SAXXIncluder to generate a new
HR>    reference-full.xml using reference.xml as input arg
HR> 3. use org.apache.fop.apps.Fop to convert reference-full.xml to 
HR> reference.pdf using docbook.xsl
HR> 
HR> Output PDFs of both the procedures looked pretty similar.
HR> 

Really bad etiquette to keep replying to your own emails, but my heart is 
in the right place, so bear with me :-)

Turns out that my method #2 of going straight from reference-full.xml to 
reference.pdf using an XSL works pretty good and doesn't emit any errors 
as long as I use an intermediary .xsl file which in turn imports 
docbook.xsl and also sets some xsl:param elements. If I try and use the 
dockbook.xsl file directly, I get all those annoying errors again.

A sample file is as follows:

<?xml version="1.0" encoding="iso-8859-1"?>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                version="1.0"
                xmlns:fo="http://www.w3.org/1999/XSL/Format";
                exclude-result-prefixes="#default"
>

  <xsl:import 
href="file:/home/haroon/dbdoclet-0.50/share/dbdoclet/tidbit/docboo
k/xsl/fo/docbook.xsl"/>

  <xsl:param name="title.margin.left">0pt</xsl:param>
  <xsl:param name="page.orientation">portrait</xsl:param>
  <xsl:param name="use.extensions">1</xsl:param>
  <xsl:param name="tablecolumns.extension">0</xsl:param>
  <xsl:param name="generate.index">1</xsl:param>
  <xsl:param name="paper.type">A4</xsl:param>
  <xsl:param name="admon.graphics">0</xsl:param>
  <xsl:param name="section.autolabel">1</xsl:param>
  <xsl:param name="fop.extensions">1</xsl:param>
  <xsl:param name="draft.mode">no</xsl:param>
  <xsl:param name="alignment">justify</xsl:param>
  <xsl:param name="autotoc.label.separator">&#160;</xsl:param>
  <xsl:param name="draft.watermark.image"></xsl:param>
  <xsl:param name="chapter.autolabel">1</xsl:param>
  <xsl:param name="section.label.includes.component.label">1</xsl:param>

</xsl:stylesheet>

Cheers,
--
Haroon Rafique   <haroon.rafique@xxxxxxxxxxx>
Student Information Systems, University of Toronto

Other related posts: