This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Import vs include


Does pdf-ps-a4.xsl  consist *only* of the import statement and the include
statement, or does it also contain other customizations, including a
template named 'book.titlepage.separator'?

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "Michèle Garoche" <michele.garoche@easyconnect.fr>
To: <docbook-apps@lists.oasis-open.org>
Sent: Sunday, April 10, 2005 8:59 PM
Subject: [docbook-apps] Import vs include

Following the advice on including customization, I made the following
change to my pdf customized stylesheet:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
 xmlns:fo="http://www.w3.org/1999/XSL/Format";>

<xsl:import
href="http://docbook.sourceforge.net/release/xsl/current/fo/
docbook.xsl"/>
<xsl:include href="titlepage-a4.xsl"/>

but then I have an error:
xsltproc -output ./src/book.fo ./stylesheets/pdf-ps-a4.xsl
./src/book.xml
compilation error: file ./stylesheets/pdf-ps-a4.xsl line 205 element
template
xsl:template: error duplicate name 'book.titlepage.separator'
make: *** [fo-a4] Error 5

So that I return to the previous  one:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
 xmlns:fo="http://www.w3.org/1999/XSL/Format";>

<xsl:import
href="http://docbook.sourceforge.net/release/xsl/current/fo/
docbook.xsl"/>
<xsl:import href="titlepage-a4.xsl"/>

I'm confused. Is it OK here, two imports because I only customize the
titlepage template? But two include when I customize another part, as
what I've done with html chunk?




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]