Strange.  What happens when you change the first xsl:import statement to point to your local /usr/share/xml/...  path to docbook.xsl instead of the http URL?

Bob Stayton
Sagehill Enterprises
b...@sagehill.net

On 10/24/2018 12:39 PM, Filippo Rusconi wrote:
Greetings, Bob,

On Wed, Oct 24, 2018 at 10:14:14AM -0700, Bob Stayton wrote:

 /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/titlepage.xsl \

That should be:

 /usr/share/xml/docbook/stylesheet/docbook-xsl/template/titlepage.xsl \

I followed the correction that you made:

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

And yes, the generated file is identical to
/usr/share/xml/docbook/stylesheet/docbook-xsl/fo/titlepage.templates.xsl

as you can see:

diff /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/titlepage.templates.xsl titlepage.xsl
<no output>

Now, I import the generated file (absolute path to be sure) in the xlst/fo/docbook.xsl file that is my customization layer file (I keep the
other lines in case they might suggest something):

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

    <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/fo/docbook.xsl"/>     <xsl:import href="/home/rusconi/devel/docbook/msxpertsuite/minexpert/xslt/fo/titlepage.xsl"/>

    <!-- 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>

When I run the build of the pdf file, the titles are gone!

If I comment out the import line, the titles are back!

What am I doing wrong with the import?

Thank you for your kind help,

Cheers,
Filippo



---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org

Reply via email to