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="manualpage">
32 <html xml:lang="{$doclang}" lang="{$doclang}">
33 <xsl:call-template name="head" />&lf;
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>
41 <xsl:call-template name="top"/>
43 <div id="page-content">
44 <xsl:call-template name="retired" />
48 <xsl:value-of select="title"/>
51 <xsl:call-template name="langavail" />&lf;
53 <xsl:apply-templates select="summary" />
54 </div>&lf; <!-- /#preamble -->
56 <xsl:if test="(not($is-chm) and count(section) > 1) or seealso">
58 <xsl:if test="not($is-chm) and count(section) > 1">
60 <xsl:apply-templates select="section" mode="index" />
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')">
70 select="$message[@id='seealso']" />
73 <xsl:for-each select="seealso">
75 <xsl:apply-templates />
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>
85 </div>&lf; <!-- /#quickview -->
88 <xsl:apply-templates select="section" />
89 </div>&lf; <!-- /#page-content -->
91 <xsl:call-template name="bottom" />&lf;