[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: 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?
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]