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] New to this list, with an XSL question...


I'm not sure what the problem is here, as your process looks correct. Can you compare your generated titlepage.xsl to the original fo/titlepage.templates.xsl that is included with the distribution? They should be equivalent, modulo whitespace variations.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
On 10/24/2018 2:35 AM, Filippo Rusconi wrote:
Greetings,

I am new to this list because I am new to DocBook.

I can handle simple documents and produce HTML/PDF output. But I now would like
to start customizing that output. Starting from the title page customization.

I have bought the Stayton book, that I found not only useful but also enjoyable.

I try to perform the title page customization as described in the book,
chapter~11.

I am on a Debian GNU/Linux box, but that should not be relevant...

# Copy the title templates xml file from the docbook-xsl distribution
# to my local directory:

cp /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/titlepage.templates.xml .

# Process that unmodified template xml file using the stylesheet from the
# distribution:

xsltproc --output titlepage.xsl /usr/share/xml/docbook/stylesheet/docbook-xsl/template/titlepage.xsl titlepage.templates.xml

# That generates the titlepage.xsl file that I now want to import into the
# customization layer master file that I called docbook.xsl:

$ cat docbook.xsl <xsl:stylesheet version="1.0"
ÂÂÂÂÂÂ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
ÂÂÂÂÂÂ xmlns:d="http://docbook.org/ns/docbook">

ÂÂÂÂÂÂ <xsl:import href="" class="moz-txt-link-rfc2396E" href="http://docbook.sourceforge.net/release/xsl-ns/current/fo/docbook.xsl">"http://docbook.sourceforge.net/release/xsl-ns/current/fo/docbook.xsl"/>
ÂÂÂÂÂÂ <xsl:import href=""/>

ÂÂÂÂÂÂ <!-- Your customizations go here -->
ÂÂÂÂÂÂ <xsl:param name="admon.graphics" select="1"/>
ÂÂÂÂÂÂ <xsl:param name="admon.graphics.extension">.svg</xsl:param>
ÂÂÂÂÂÂ <xsl:param name="admon.graphics.path">images/</xsl:param>

ÂÂÂÂÂÂ <xsl:param name="toc.indent.width">12</xsl:param>

</xsl:stylesheet>

Now I run the build of the PDF file and I find that the PDF file misses all the
titles for document, chapters and sections. What is odd, is that the sidebar of
the PDF viewer still shows these sectioning blocks' heads in the table of
contents, but when I go in the actual pages viewing pane, these sectioning heads
are missing.

I would have thought that changing nothing in the the local copy of the
titlepage.templates.xml would have provided me with a "like-the-original" copy
of the xsl file after processing with xsltproc.

What am I missing ?

Thanks for your reading up to this point.

Sincerely,
Filippo Rusconi




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