]> granicus.if.org Git - apache/blob - docs/manual/style/xsl/manualpage.xsl
the html files used for chm compiling differ in detail from our normal
[apache] / docs / manual / style / xsl / manualpage.xsl
1 <?xml version="1.0"?>
2 <!DOCTYPE xsl:stylesheet [
3     <!ENTITY nbsp SYSTEM "util/nbsp.xml">
4 ]>
5 <xsl:stylesheet version="1.0"
6               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7                   xmlns="http://www.w3.org/1999/xhtml">
8
9   <!--                                                    -->
10   <!-- <manualpage>                                       -->
11   <!-- Process an entire document into an HTML page       -->
12   <!--                                                    -->
13   <xsl:template match="manualpage">
14     <html xml:lang="{$messages/@lang}" lang="{$messages/@lang}">
15       <xsl:call-template name="head"/>
16
17 <xsl:text>
18 </xsl:text> <!-- insert line break -->
19
20       <body id="manual-page">
21         <!-- unsqueeze if there's no sidebar -->
22         <xsl:if test="not(count(section) > 1 or seealso)">
23           <xsl:attribute name="class">no-sidebar</xsl:attribute>
24         </xsl:if>
25
26         <xsl:call-template name="top"/>          
27
28         <div id="page-content">
29           <div id="preamble">        
30             <h1>
31               <xsl:value-of select="title"/>
32             </h1>
33
34             <xsl:apply-templates select="summary"/>
35           </div> <!-- /preamble -->
36           
37 <xsl:text>
38 </xsl:text> <!-- insert line break -->
39
40           <xsl:if test="(not($is-chm) and count(section) > 1) or seealso">
41             <div id="quickview">
42               <xsl:if test="not($is-chm) and count(section) > 1">
43                 <ul id="toc">
44                   <xsl:apply-templates select="section" mode="index"/>
45                 </ul>
46               </xsl:if>
47
48               <xsl:if test="seealso">
49                 <h3>
50                   <xsl:value-of select="$messages/message[@name='seealso']"/>
51                 </h3>
52                 <ul class="seealso">
53                   <xsl:for-each select="seealso">
54                     <li>
55                       <xsl:apply-templates/>
56                     </li>
57                   </xsl:for-each>
58                 </ul>
59               </xsl:if>
60
61             </div> <!-- /quickview -->
62
63 <xsl:text>
64 </xsl:text> <!-- insert line break -->
65
66           </xsl:if>
67
68           <xsl:apply-templates select="section"/>
69         </div> <!-- /page-content -->
70
71 <xsl:text>
72 </xsl:text> <!-- insert line break -->
73
74         <xsl:call-template name="bottom"/>
75
76 <xsl:text>
77 </xsl:text> <!-- insert line break -->
78
79       </body>
80     </html>
81   </xsl:template>
82
83 </xsl:stylesheet>