<xsl:template match="sect1[@role = 'NotInToc']|sect2[@role = 'NotInToc']|sect3[@role = 'NotInToc']|sect4[@role = 'NotInToc']" mode="toc" />
With this above, specified sections can be selected to not to appear in the TOC. 2012/2/21 Roland Burda <[email protected]> > I should have mentioned this earlier that it is based on topic whether > which section will appear in the TOC. My bad. > > > 2012/2/21 Aaron DaMommio <[email protected]> > >> Okay, Roland. What is the difference between the sections you want to >> show in the TOC and the ones you do not want? >> Is it based on topic or something? I'm curious as to how you decide >> what to include and what to leave out. >> --Aaron >> >> On Tue, Feb 21, 2012 at 2:14 PM, Roland Burda <[email protected]> >> wrote: >> > Aaron, >> > >> > Yes, I have a given structure of the TOC which was established by the >> writer >> > of the book I am working on. Therefore I need to change the TOC, so to >> get >> > the same result which follows the authors instructions and the >> structure I >> > just mentioned. >> > Unfortunately the originally generated TOC contains all of the >> sections. I >> > don't need all of them, regardless of the level of the sections. >> > >> > I will give a respond tomorrow what result I get after I change my >> > customization layer according to the TOCcontrol guide. Thank you! >> > >> > 2012/2/21 Aaron DaMommio <[email protected]> >> >> >> >> Roland, >> >> This can certainly be done. When you say 'only containing selected >> >> section titles', I assume you have established, or plan to establish, >> >> some markup difference between the selected titles and the other ones. >> >> Do you already have something in mind? Maybe you can say more about >> >> what you intend. >> >> >> >> This section of "DocBook XSL: The Complete Guide" talks about how to >> >> modify a customization layer to use the 'role' attribute to prevent >> >> certain sections from appearing in the TOC: >> >> >> >> http://www.sagehill.net/docbookxsl/TOCcontrol.html#TitlesOutOfToc >> >> >> >> --Aaron DaMommio >> >> >> >> >> >> On Tue, Feb 21, 2012 at 9:46 AM, Roland Burda <[email protected]> >> >> wrote: >> >> > Hello! >> >> > >> >> > First, I'm new in Docbook. I have been trying to generate the TOC >> only >> >> > containing selected section titles. I did some research and haven't >> >> > found >> >> > anything so far which could help me with this issue. My question is: >> Is >> >> > it >> >> > possible to force either Xsltproc or FOP to generate the TOC which >> only >> >> > contains selected section titles? How can I modify my customization >> >> > layer in >> >> > order to achieve my goal? >> >> > >> >> > Thank you in advance! >> >> > >> >> > Roland Burda >> >> >> >> >> >> >> >> -- >> >> -------------------------------------- >> >> Aaron DaMommio: Husband, father, writer, juggler, and expert washer of >> >> dishes. >> >> - My blog: http://aarondamommio.blogspot.com >> >> - Need a juggler? http://amazingaaronjuggler.blogspot.com/ >> >> ======================================= >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [email protected] >> >> For additional commands, e-mail: >> [email protected] >> >> >> > >> >> >> >> -- >> -------------------------------------- >> Aaron DaMommio: Husband, father, writer, juggler, and expert washer of >> dishes. >> - My blog: http://aarondamommio.blogspot.com >> - Need a juggler? http://amazingaaronjuggler.blogspot.com/ >> ======================================= >> > >
