]> granicus.if.org Git - apache/blob - docs/manual/style/xsl/manualpage.xsl
Adding the 'heart' of the new manual style :-)
[apache] / docs / manual / style / xsl / manualpage.xsl
1 <?xml version="1.0"?>
2 <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
3 <xsl:stylesheet version="1.0"
4               xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5                   xmlns="http://www.w3.org/1999/xhtml">
6
7   <!--                                                    -->
8   <!-- <manualpage>                                       -->
9   <!-- Process an entire document into an HTML page       -->
10   <!--                                                    -->
11   <xsl:template match="manualpage">
12     <html xml:lang="{$messages/@lang}" lang="{$messages/@lang}">
13       <xsl:call-template name="head"/>
14
15       <body id="manual-page">
16         <xsl:call-template name="top"/>          
17
18         <div id="page-content">
19           <div id="preamble">        
20             <h1>
21               <xsl:value-of select="title"/>
22             </h1>
23
24             <xsl:apply-templates select="summary"/>
25           </div> <!-- /preamble -->
26           
27           <xsl:if test="count(section) > 1 or seealso">
28             <div id="quickview">
29               <xsl:if test="count(section) > 1">
30                 <ul id="toc">
31                   <xsl:apply-templates select="section" mode="index"/>
32                 </ul>
33               </xsl:if>
34
35               <xsl:if test="seealso">
36                 <h3>
37                   <xsl:value-of select="$messages/message[@name='seealso']"/>
38                 </h3>
39                 <ul class="seealso">
40                   <xsl:for-each select="seealso">
41                     <li>
42                       <xsl:apply-templates/>
43                     </li>
44                   </xsl:for-each>
45                 </ul>
46               </xsl:if>
47
48             </div> <!-- /quickview -->
49           </xsl:if>
50
51           <xsl:apply-templates select="section"/>
52         </div> <!-- /page-content -->
53
54         <xsl:call-template name="bottom"/>
55       </body>
56     </html>
57   </xsl:template>
58
59 </xsl:stylesheet>