This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
You have to use the sectN hierarchy if you want to control the section depths used by your authors. For example, you could write a customization layer that allowed chapters to contain sect1, sect3, and sect3 but nothing deeper. That would limit authors to three levels of sections in each chapter. Some publications enforce strict rules about things like that.
If you allow section to be recursive at all, it's infinitely recursive.
<xsl:if test="//section[count(descendant::section) > $section_nesting_limit]" <xsl:message terminate="yes">...
-- http://www.pinkjuice.com/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |