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]

[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?

Michèle
<http://micmacfr.homeunix.org>

Attachment: PGP.sig
Description: =?ISO-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=


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