[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Html: suppressing separate titlepage for book/article
Michael, > If you can edit the stylesheets directly, you only need to > make a one-line change: That worked a charm - exactly what I wanted. I have been working on the basis of using a customised layer, which didn't work at all. But - I'd like to know why it didn't. I assume that the order in which the stylesheets get imported is important, so why can't I do something like this: <?xml version="1.0"?> <!-- -*- sgml -*- --> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/> <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk-common.xsl"/> <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/manifest.xsl"/> <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk-code.xsl"/> <xsl:import href="my-chunk-code.xsl"/> ... </xsl:stylesheet> and have 'my-chunk-code.xsl' contain just this: <!-- Dec. 1 2005: edited to removed 'article' and 'refentry --> <!-- so that no separate titlepage gets generated --> <xsl:template match="set|book|part|preface|chapter|appendix |reference |book/glossary|article/glossary|part/glossary |book/bibliography|article/bibliography|part/bibliography |colophon"> <xsl:choose> <xsl:when test="$onechunk != 0 and parent::*"> <xsl:apply-imports/> </xsl:when> <xsl:otherwise> <xsl:call-template name="process-chunk-element"/> </xsl:otherwise> </xsl:choose> </xsl:template> To my mind, this _should_ work - but in fact what I get is: nothing! No pages at all :( Regards, Donna -- There is not a shred of evidence to suggest that life should be taken seriously
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]