xsl-list
[Top] [All Lists]

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

2010-09-18 13:14:41


On 18.09.2010 19:53, andreas_fe(_at_)gmx(_dot_)de 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


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>