Re: docbook: export to pdf, exclude a special tag
You can override what's defined in the imported file fo/docbook.xsl. Just try something like<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>
<xsl:template match="revhistory" />
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" />
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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format