Debian Codegraph @

src/docbkx/styles/reference-html-chunk.xsl

raw
1 <!--
2 ~ Copyright 2009-2013 Roland Huss
3 ~
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
7 ~
8 ~ http://www.apache.org/licenses/LICENSE-2.0
9 ~
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
15 -->
16 <xsl:stylesheet
17 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
18 <xsl:import href="reference-html-common.xsl"/>
19
20 <xsl:param name="root.filename">reference</xsl:param>
21 <xsl:param name="chunk.section.depth">0</xsl:param>
22 <xsl:param name="chunk.quietly">1</xsl:param>
23 <xsl:param name="use.id.as.filename">1</xsl:param>
24
25 <!-- HEADERS AND FOOTERS -->
26
27 <!-- Use custom header -->
28 <xsl:template name="header.navigation">
29 <xsl:param name="next"/>
30 <xsl:param name="prev"/>
31 <xsl:if test=". != /book">
32 <div class='navheader'>
33 <xsl:call-template name="navlinks">
34 <xsl:with-param name="next" select="$next"/>
35 <xsl:with-param name="prev" select="$prev"/>
36 </xsl:call-template>
37 </div>
38 </xsl:if>
39 </xsl:template>
40
41 <!-- Use custom footer -->
42 <xsl:template name="footer.navigation">
43 <xsl:param name="next"/>
44 <xsl:param name="prev"/>
45 <div class='navfooter'>
46 <xsl:call-template name="navlinks">
47 <xsl:with-param name="next" select="$next"/>
48 <xsl:with-param name="prev" select="$prev"/>
49 </xsl:call-template>
50 </div>
51 </xsl:template>
52
53 <xsl:template name="navlinks">
54 <xsl:param name="next"/>
55 <xsl:param name="prev"/>
56 <div>
57 <div class="navbar">
58 <xsl:if test="count($prev)>0">
59 <xsl:call-template name="customXref">
60 <xsl:with-param name="target" select="$prev"/>
61 <xsl:with-param name="content">
62 <xsl:text>Previous</xsl:text>
63 </xsl:with-param>
64 </xsl:call-template>
65 <span>|</span>
66 </xsl:if>
67 <xsl:call-template name="customXref">
68 <xsl:with-param name="target" select="/book"/>
69 <xsl:with-param name="content">
70 <xsl:text>Contents</xsl:text>
71 </xsl:with-param>
72 </xsl:call-template>
73 <xsl:if test="count($next)>0">
74 <span>|</span>
75 <xsl:call-template name="customXref">
76 <xsl:with-param name="target" select="$next"/>
77 <xsl:with-param name="content">
78 <xsl:text>Next</xsl:text>
79 </xsl:with-param>
80 </xsl:call-template>
81 </xsl:if>
82 </div>
83 </div>
84 </xsl:template>
85
86 </xsl:stylesheet>