]> granicus.if.org Git - apache/blob - docs/manual/style/xsl/manualpage.xsl
Fix alignment in a <highlight> block.
[apache] / docs / manual / style / xsl / manualpage.xsl
1 <?xml version="1.0"?>
2
3 <!--
4  Licensed to the Apache Software Foundation (ASF) under one or more
5  contributor license agreements.  See the NOTICE file distributed with
6  this work for additional information regarding copyright ownership.
7  The ASF licenses this file to You under the Apache License, Version 2.0
8  (the "License"); you may not use this file except in compliance with
9  the License.  You may obtain a copy of the License at
10
11      http://www.apache.org/licenses/LICENSE-2.0
12
13  Unless required by applicable law or agreed to in writing, software
14  distributed under the License is distributed on an "AS IS" BASIS,
15  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  See the License for the specific language governing permissions and
17  limitations under the License.
18 -->
19
20 <!DOCTYPE xsl:stylesheet [
21     <!ENTITY lf SYSTEM "util/lf.xml">
22 ]>
23 <xsl:stylesheet version="1.0"
24               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
25                   xmlns="http://www.w3.org/1999/xhtml">
26
27 <!-- ==================================================================== -->
28 <!-- <manualpage>                                                         -->
29 <!-- Process an entire document into an HTML page                         -->
30 <!-- ==================================================================== -->
31 <xsl:template match="manualpage">
32 <html xml:lang="{$doclang}" lang="{$doclang}">
33     <xsl:call-template name="head" />&lf;
34
35     <body id="manual-page">
36         <!-- unsqueeze if there's no sidebar -->
37         <xsl:if test="not(count(section) > 1 or seealso)">
38           <xsl:attribute name="class">no-sidebar</xsl:attribute>
39         </xsl:if>
40
41         <xsl:call-template name="top"/>
42
43         <div id="page-content">
44             <xsl:call-template name="retired" />
45
46             <div id="preamble">
47                 <h1>
48                     <xsl:value-of select="title"/>
49                 </h1>&lf;
50
51                 <xsl:call-template name="langavail" />&lf;
52
53                 <xsl:apply-templates select="summary" />
54             </div>&lf; <!-- /#preamble -->
55
56             <xsl:if test="(not($is-chm) and count(section) > 1) or seealso">
57                 <div id="quickview">
58                     <xsl:if test="not($is-chm) and count(section) > 1">
59                         <ul id="toc">
60                         <xsl:apply-templates select="section" mode="index" />
61                         </ul>
62                     </xsl:if>
63
64                      <!-- The seealso section shows links to related documents
65                          explicitly set in .xml docs or simply the comments. -->
66                     <xsl:if test="seealso or not($is-chm or $is-zip or
67                                                 $metafile/basename = 'index')">
68                         <h3>
69                             <xsl:value-of
70                                 select="$message[@id='seealso']" />
71                         </h3>
72                         <ul class="seealso">
73                         <xsl:for-each select="seealso">
74                             <li>
75                                 <xsl:apply-templates />
76                             </li>
77                         </xsl:for-each>
78                         <xsl:if test="not($is-chm or $is-zip or $metafile/basename = 'index')">
79                             <li><a href="#comments_section"><xsl:value-of
80                                         select="$message[@id='comments']" /></a>
81                             </li>
82                         </xsl:if>
83                         </ul>
84                     </xsl:if>
85                 </div>&lf; <!-- /#quickview -->
86             </xsl:if>
87
88             <xsl:apply-templates select="section" />
89         </div>&lf; <!-- /#page-content -->
90
91         <xsl:call-template name="bottom" />&lf;
92     </body>
93 </html>
94 </xsl:template>
95 <!-- /manualpage -->
96
97 </xsl:stylesheet>