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


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
bobs@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




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