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
11 http://www.apache.org/licenses/LICENSE-2.0
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.
20 <!DOCTYPE xsl:stylesheet [
21 <!ENTITY lf SYSTEM "util/lf.xml">
23 <xsl:stylesheet version="1.0"
24 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
25 xmlns="http://www.w3.org/1999/xhtml">
27 <!-- ==================================================================== -->
29 <!-- Process an entire document into an HTML page -->
30 <!-- ==================================================================== -->
31 <xsl:template match="/sitemap">
32 <html xml:lang="{$doclang}" lang="{$doclang}">
33 <xsl:call-template name="head" />&lf;
35 <body id="manual-page">&lf;
36 <xsl:call-template name="top" />&lf;
38 <div id="page-content">
39 <xsl:call-template name="retired" />
43 <xsl:value-of select="title" />
46 <xsl:call-template name="langavail" />&lf;
48 <xsl:apply-templates select="summary" />
49 </div>&lf; <!-- /#preamble -->
51 <xsl:if test="(not($is-chm) and count(category) > 1) or seealso">
53 <xsl:if test="not($is-chm) and count(category) > 1">
55 <xsl:for-each select="category">
59 <img src="{$path}/images/down.gif" alt="" />
60 <xsl:text> </xsl:text>
63 select="title" mode="print" />
69 <img src="{$path}/images/down.gif" alt="" />
70 <xsl:text> </xsl:text>
72 select="title" mode="print" />
80 <xsl:if test="seealso">
82 <xsl:value-of select="$message
86 <ul class="seealso">&lf;
87 <xsl:for-each select="seealso">
89 <xsl:apply-templates />
94 </div>&lf; <!-- /#quickview -->
95 </xsl:if> <!-- have sidebar -->
97 <xsl:apply-templates select="category" />
98 </div>&lf; <!-- /#page-content -->
100 <xsl:call-template name="bottom" />&lf;
107 <!-- ==================================================================== -->
108 <!-- category/page -->
109 <!-- ==================================================================== -->
110 <xsl:template match="sitemap/category/page">
112 <xsl:if test="@separate='yes'">
113 <xsl:attribute name="class">separate</xsl:attribute>
117 <xsl:when test="@href">
119 <xsl:call-template name="helper.uri.fix">
120 <xsl:with-param name="uri" select="@href" />
122 <xsl:value-of select="." />
126 <xsl:value-of select="." />
131 <!-- /category/page -->
134 <!-- ==================================================================== -->
135 <!-- Process a sitemap category -->
136 <!-- ==================================================================== -->
137 <xsl:template match="sitemap/category">
138 <xsl:call-template name="toplink" />&lf;
140 <div class="section">
141 <!-- Category title -->
144 <xsl:when test="@id">
145 <a id="{@id}" name="{@id}">
146 <xsl:apply-templates select="title" mode="print" />
150 <xsl:apply-templates select="title" mode="print" />
155 <!-- category body -->
157 <xsl:apply-templates select="page" />
160 <!-- optional ... -->
161 <xsl:if test="@id = 'modules'">
162 <xsl:apply-templates select="document($allmodules)/modulefilelist" />
165 </div> <!-- /.section -->
170 <!-- ==================================================================== -->
171 <!-- category/modulefilelist -->
172 <!-- insert module list into sitemap -->
173 <!-- ==================================================================== -->
174 <xsl:template match="modulefilelist">
175 <xsl:variable name="translist">
176 <xsl:text>-</xsl:text>
177 <xsl:for-each select="modulefile">
178 <xsl:variable name="current" select="document(.)/modulesynopsis" />
180 <xsl:text> </xsl:text>
181 <xsl:value-of select="$current/name" />
182 <xsl:text> </xsl:text>
183 <xsl:call-template name="module-translatename">
184 <xsl:with-param name="name" select="$current/name" />
186 <xsl:text> -</xsl:text>
192 <a href="mod/core.html">
193 <xsl:value-of select="$message[@id='apachecore']" />
197 <a href="mod/mpm_common.html">
198 <xsl:value-of select="$message[@id='apachempmcommon']" />
202 <xsl:for-each select="modulefile">
203 <xsl:sort select="substring-before(substring-after($translist, concat('- ',
204 document(.)/modulesynopsis/name, ' ')), ' -')" />
206 <xsl:variable name="current" select="document(.)/modulesynopsis" />
208 <xsl:if test="$current/status='MPM' and $current/name!='mpm_common'">
209 <xsl:variable name="name" select="substring-before(substring-after(
210 $translist, concat('- ', $current/name, ' ')), ' -')" />
213 <a href="mod/{$current/name}.html">
214 <xsl:value-of select="$message[@id='apachempm']" />
215 <xsl:text> </xsl:text>
216 <xsl:value-of select="$name" />
224 <xsl:for-each select="modulefile">
225 <xsl:sort select="substring-before(substring-after($translist, concat('- ',
226 document(.)/modulesynopsis/name, ' ')), ' -')"/>
228 <xsl:variable name="current" select="document(.)/modulesynopsis" />
230 <xsl:if test="$current/status!='MPM' and $current/status!='Core'">
232 <a href="mod/{$current/name}.html">
233 <xsl:value-of select="$message[@id='apachemodule']"/>
234 <xsl:text> </xsl:text>
235 <xsl:value-of select="$current/name"/>
242 <!-- /category/modulefilelist -->