python-tldp/extras/xsl/tldp-sections.xsl

27 lines
1.2 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- TLDP Sections HTML XSL; break source into one output file per section
This is a small customization layer on top of upstream
docbook-xsl-stylesheets. Since the XML_CATALOG_FILES will locate the
installed version of the required import resources, we will use the
system identifier in the xsl:import line.
-->
<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
<xsl:import href="tldp-common.xsl"/>
<!-- Generate a separate HTML page for each section. Doing this
divides the document into many pages with a shorter amount of
text on each page. Shorter pages result in less scrolling when
viewing the document in a web browser. Contrast this behavior
with the tldp-chapter.xsl and tldp-one-page.xsl customizations. -->
<xsl:param name="chunk.section.depth" select="1"></xsl:param>
<!-- Make sure that the chapter table of contents is on its own page
rather than being placed on the same chuck as the first section. -->
<xsl:param name="chunk.first.sections" select="1"></xsl:param>
</xsl:stylesheet>