multilib
trunk
xry111/arm64
xry111/loongarch
Last change
on this file since c080648 was 5e423c8, checked in by Pierre Labastie <pierre.labastie@…>, 9 months ago |
Change all input encodings to UTF-8
|
-
Property mode
set to
100644
|
File size:
1.7 KB
|
Rev | Line | |
---|
[5e423c8] | 1 | <?xml version='1.0' encoding='UTF-8'?>
|
---|
[c873d807] | 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 |
|
---|
[15c7d39] | 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 -->
|
---|
[c873d807] | 11 |
|
---|
[15c7d39] | 12 | <!-- Our master non-chunking presentation templates -->
|
---|
[c873d807] | 13 | <xsl:import href="chunk-slave.xsl"/>
|
---|
| 14 |
|
---|
[15c7d39] | 15 | <!-- Upstream chunk code named templates -->
|
---|
[1cb44818] | 16 | <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk-common.xsl"/>
|
---|
[c873d807] | 17 |
|
---|
[15c7d39] | 18 | <!-- Upstream chunk code match templates -->
|
---|
[1cb44818] | 19 | <xsl:include href="http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk-code.xsl"/>
|
---|
[c873d807] | 20 |
|
---|
[15c7d39] | 21 | <!-- Customized chunk templates -->
|
---|
[c873d807] | 22 | <xsl:include href="xhtml/lfs-index.xsl"/>
|
---|
| 23 | <xsl:include href="xhtml/lfs-legalnotice.xsl"/>
|
---|
| 24 | <xsl:include href="xhtml/lfs-navigational.xsl"/>
|
---|
| 25 |
|
---|
[15c7d39] | 26 | <!-- sect1:
|
---|
| 27 | Prevent creation of dummy sect1 files used to emulate sub-chapters.
|
---|
| 28 | The original template is in {docbook-xsl}/xhtml/chunk-code.xsl
|
---|
| 29 | It also matches other sect* tags. The code for those tags are
|
---|
| 30 | unchanged. -->
|
---|
[c873d807] | 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>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.