[ab4fdfc] | 1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
[65b2904] | 2 |
|
---|
| 3 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
---|
| 4 | xmlns="http://www.w3.org/1999/xhtml"
|
---|
| 5 | version="1.0">
|
---|
| 6 |
|
---|
| 7 | <!-- Top-level chunked code for normal processing.
|
---|
| 8 | Import customized output templates.
|
---|
| 9 | Include customized chunk templates.
|
---|
| 10 | Replaces {docbook-xsl}/xhtml/chunk.xsl -->
|
---|
| 11 |
|
---|
| 12 | <!-- Our master non-chunking presentation templates -->
|
---|
| 13 | <xsl:import href="chunk-slave.xsl"/>
|
---|
| 14 |
|
---|
| 15 | <!-- Upstream chunk code named templates -->
|
---|
[869909a] | 16 | <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk-common.xsl"/>
|
---|
[65b2904] | 17 |
|
---|
| 18 | <!-- Upstream chunk code match templates -->
|
---|
[869909a] | 19 | <xsl:include href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk-code.xsl"/>
|
---|
[65b2904] | 20 |
|
---|
| 21 | <!-- Including our customized chunks templates -->
|
---|
| 22 | <xsl:include href="xhtml/lfs-index.xsl"/>
|
---|
| 23 | <xsl:include href="xhtml/lfs-legalnotice.xsl"/>
|
---|
| 24 | <xsl:include href="xhtml/lfs-navigational.xsl"/>
|
---|
[99ab416] | 25 | <xsl:include href="xhtml/lfs-glossary.xsl"/>
|
---|
[65b2904] | 26 |
|
---|
| 27 | <!-- sect1:
|
---|
| 28 | Prevent creation of dummy sect1 files used to emulate sub-chapters. -->
|
---|
| 29 | <!-- The original template is in {docbook-xsl}/xhtml/chunk-code.xsl
|
---|
| 30 | It match also others sect* tags. The code for that tags is unchanged. -->
|
---|
| 31 | <xsl:template match="sect1">
|
---|
| 32 | <xsl:variable name="ischunk">
|
---|
| 33 | <xsl:call-template name="chunk"/>
|
---|
| 34 | </xsl:variable>
|
---|
| 35 | <xsl:choose>
|
---|
| 36 | <xsl:when test="@role = 'dummy'"/>
|
---|
| 37 | <xsl:when test="not(parent::*)">
|
---|
| 38 | <xsl:call-template name="process-chunk-element"/>
|
---|
| 39 | </xsl:when>
|
---|
| 40 | <xsl:when test="$ischunk = 0">
|
---|
| 41 | <xsl:apply-imports/>
|
---|
| 42 | </xsl:when>
|
---|
| 43 | <xsl:otherwise>
|
---|
| 44 | <xsl:call-template name="process-chunk-element"/>
|
---|
| 45 | </xsl:otherwise>
|
---|
| 46 | </xsl:choose>
|
---|
| 47 | </xsl:template>
|
---|
| 48 |
|
---|
| 49 | </xsl:stylesheet>
|
---|