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

=?ISO-8859-1?Q?Ceci_est_une_signature_=E9lectronique_PGP?=



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