Re: [xsl] docbook: export to pdf, exclude a special tag

Subject: Re: [xsl] docbook: export to pdf, exclude a special tag
From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx>
Date: Sat, 18 Sep 2010 20:14:17 +0200
On 18.09.2010 19:53, andreas_fe@xxxxxx wrote:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version='1.0'>
<xsl:import href="fo/docbook.xsl"/>
<xsl:param name="paper.type">A4</xsl:param>
You can override what's defined in the imported file fo/docbook.xsl. Just try something like
<xsl:template match="revhistory" />
here.
</xsl:stylesheet>


No guarantee though that revhistory will disappear then. It depends on whether in the imported stylesheet it was processed by something like
<xsl:copy-of select="revhistory" />
or by
<xsl:apply-templates />
Templates defined in your stylesheet will have precedence over imprted stylesheets. Therefore if it was included by virtue of apply-templates and a corresponding rule (in default mode), then it will vanish. Otherwise you'll have to modify the original template where revhistory was generated.
Chances are that the output template is highly configurable. Then you probably can specify a switch (passed as an xsl:param, for example) on invocation that will suppress revhistory.


I don't use DocBook XSL, but rtfm yields:
http://sagehill.net/docbookxsl/FormatRevhistory.html

=> Try
<xsl:template match="revhistory" mode="titlepage.mode"/>
in your param(s).xsl

-Gerrit

Current Thread