[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Filtering out sections?
On 27.11.2011 19:22, Lars Vogel wrote:There is one trick how to do this one step. Use profiling version of
> great! This works. I had the problem if I put this directly into my
> customizing layer that the TOC and the numbering of the chapters would
> still be incorrect.
>
> But if I run this as a two step it works perfectly.
stylesheets, i.e. profile-docbook.xsl instead of docbook.xsl and put
filtering template into profile mode, like:
<xsl:import
href="">
<xsl:template match="section[@role='wrapper']" mode="profile">
<xsl:apply-templates select="section" mode="profile"/>
</xsl:template>
</xsl:stylesheet>
profile mode is responsible for filtering prior transformation, so
chapter numbering will work then correctly.
Jirka
--
------------------------------------------------------------------
Jirka Kosek e-mail: jirka@kosek.cz http://xmlguru.cz
------------------------------------------------------------------
Professional XML consulting and training services
DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]