This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Import vs include
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: <docbook-apps at lists dot oasis-open dot org>, Michèle Garoche <michele dot garoche at easyconnect dot fr>
- Date: Sun, 10 Apr 2005 22:41:08 -0700
- Subject: Re: [docbook-apps] Import vs include
- References: <68187e15394f5fe77ca28ae9e328c014@easyconnect.fr>
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?