]> granicus.if.org Git - apache/blob - docs/manual/style/xsl/moduleindex.xsl
Adding the 'heart' of the new manual style :-)
[apache] / docs / manual / style / xsl / moduleindex.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   <!-- Builds the moduleindex page  -->
9   <!--                              -->
10   <xsl:template match="moduleindex">
11     <html xml:lang="{$messages/@lang}" lang="{$messages/@lang}">
12       <xsl:call-template name="head"/>
13
14       <body id="module-index">
15         <xsl:call-template name="top"/>  
16
17         <div id="preamble">
18           <h1>
19             <xsl:value-of select="title"/>
20           </h1>
21           
22           <xsl:apply-templates select="summary" />
23         </div>
24           
25         <xsl:call-template name="toplink"/>
26
27         <div class="section">
28           <h2>
29             <xsl:value-of select="$messages/message[@name='corefeatures']"/>
30           </h2>
31
32           <dl>
33             <xsl:for-each select="document(modulefilelist/modulefile)/modulesynopsis">
34               <xsl:sort select="name"/>
35
36               <xsl:if test="status='MPM' or status='Core'">
37                 <dt>
38                   <a href="{name}.html">
39                     <xsl:value-of select="name"/>
40                   </a>
41                 </dt>
42                 <dd>
43                   <xsl:apply-templates select="description"/>
44                 </dd>
45               </xsl:if>
46             </xsl:for-each>
47           </dl>
48         </div>
49         <!-- /core section -->
50
51         <xsl:call-template name="toplink"/>
52
53         <div class="section">
54           <h2>
55             <xsl:value-of select="$messages/message[@name='othermodules']"/>
56           </h2>
57             
58           <dl>
59             <xsl:for-each select="document(modulefilelist/modulefile)/modulesynopsis">
60               <xsl:sort select="name"/>
61                 
62               <xsl:if test="status!='MPM' and status!='Core'">
63                 <dt>
64                   <a href="{name}.html">
65                     <xsl:value-of select="name"/>
66                   </a>
67                 </dt>
68                 <dd>
69                   <xsl:apply-templates select="description"/>
70                 </dd>
71               </xsl:if>
72             </xsl:for-each>
73           </dl>
74         </div>
75         <!-- /modules section -->
76
77         <xsl:call-template name="bottom"/>
78
79       </body>
80     </html>
81   </xsl:template> 
82   <!-- /moduleindex -->
83
84 </xsl:stylesheet>