Devrim E. wrote:

using xmlmind 6.0, I have a docbook 5 book and I use docbook PDF
conversion with some custom stylesheet parameters which I have added to
the table in Save File dialog.

I am trying to achieve the same conversion with command line. I have
created a stylesheet and tried using it with xxetool. Interestingly it
ignores my xml file and continues with the settings from the dialog box.
Here is the command line:

xxetool convert -t PDF_A3_2Columns.xml -p hyphenate 0  db5.toPSFile "Users Guide.xml"  -s 
pdf -s"|pdf"  -u out.pdf

and here is the PDF_A3_2Columns.xml.

<?xml version="1.0"  encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
     xmlns:fo="http://www.w3.org/1999/XSL/Format";
     version="1.0">
     <xsl:import 
href="http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"/>
     <xsl:param name="column.count.back">2</xsl:param>
     <xsl:param name="column.count.body">2</xsl:param>
     <xsl:param name="column.count.index">2</xsl:param>
     <xsl:param name="column.count.lot">2</xsl:param>
     <xsl:param name="page.orientation">landscape</xsl:param>
     <xsl:param name="page.type">A3</xsl:param>
</xsl:stylesheet>

Questions:
1. I guess ideally I shall use the docbook.xml from the XMLMind 
addon\config\docbook5\xsl\fo\ dir. How can I do that

Using XXE's stock XML catalogs, xxetool automatically maps "http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"; to the local copy found in "XXE_install_dir\addon\config\docbook\xsl\fo\".

Hence nothing to do!

---------
IMPORTANT
---------
Note that PDF_A3_2Columns.xml imports "http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"; which is unusable for DocBook v5 documents. "http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl"; applies to DocBook v4 documents.

Please replace:

"http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl";

by:

"http://docbook.sourceforge.net/release/xsl-ns/current/fo/docbook.xsl";

As explained in a previous email, DocBook 4 (no namespace; DTD) is totally different from DocBook 5 (has a namespace; RELAX NG schema).




2. Why would my stylesheet ignored?


Your stylesheet is *not* ignored. However some of its parameters are.

If you want to check this, please run "xxetool -vvv ..." to see what happens.

Example used to test your PDF_A3_2Columns.xml (of course, after fixing the path of docbook.xsl):

$ xxetool convert -vvv -t ~/tmp/PDF_A3_2Columns.xml -p hyphenate 0 db5.toPSFile t.xml -s pdf -s "|pdf" -u out.pdf

Some of PDF_A3_2Columns.xml parameters are ignored because those specified in XXE's "Convert Document" dialog box take precedence.

There is nothing to do to change this.

Ignored:

    <xsl:param name="page.type">A3</xsl:param>

Not ignored:

    <xsl:param name="column.count.back">2</xsl:param>
    <xsl:param name="column.count.body">2</xsl:param>
    <xsl:param name="column.count.index">2</xsl:param>
    <xsl:param name="column.count.lot">2</xsl:param>
    <xsl:param name="page.orientation">landscape</xsl:param>



--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to