Suggestions |
---|
Search:
|
Next:
section simplesect |
Up:
Sections sections.mod.xsl |
sect1|sect2|sect3|sect4|sect5 — Process explicitly-nested sections
<xsl:template match="sect1|sect2|sect3|sect4|sect5"> <xsl:param name="bridgehead" select="ancestor::preface|ancestor::colophon|ancestor::dedication|ancestor::partintro"/> <xsl:variable name="template"> <xsl:value-of select="local-name(.)"/> <xsl:if test="$bridgehead"><xsl:text>*</xsl:text></xsl:if> </xsl:variable> ... </xsl:template>
Formats a section's title (including numbering, if applicable) then allows all child elements to be processed. The title is formatted the using LaTeX mapping identified by the element name (e.g. sect1 [2.0.9], etc.).
If true(), the title is processed like a bridgehead [2.0.9] (that is, the section is unnumbered and does not appear in the toc [2.0.9]). This parameter defaults to false() unless the section appears within a preface.
Currently, “info” elements (e.g. sect1info [2.0.9]), subtitle [2.0.9] and titleabbrev [2.0.9] are not honoured.
The use of special components such as toc [2.0.9], lot [2.0.9], index [2.0.9] and glossary [2.0.9] is unlikely to be successful.
test_article.pdf from test_article/article.xml, test_book.pdf from test_book/test.xml