common.xsl revision 147316c371bf8c6338778387b7269f9b24050329
8794d6ba53e0d88bb9d6bee4d7e79c1a8b265444nd Licensed to the Apache Software Foundation (ASF) under one or more
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end contributor license agreements. See the NOTICE file distributed with
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end this work for additional information regarding copyright ownership.
db878466c5e95073429dda0bdd001f45e9486e16fielding The ASF licenses this file to You under the Apache License, Version 2.0
db878466c5e95073429dda0bdd001f45e9486e16fielding (the "License"); you may not use this file except in compliance with
db878466c5e95073429dda0bdd001f45e9486e16fielding the License. You may obtain a copy of the License at
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end Unless required by applicable law or agreed to in writing, software
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end distributed under the License is distributed on an "AS IS" BASIS,
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end See the License for the specific language governing permissions and
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end limitations under the License.
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive %HTTPD-VERSION;
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- Please, don't hard-code output strings! Use the language -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- files and the translation "stuff"... -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- Injected variables: -->
8794d6ba53e0d88bb9d6bee4d7e79c1a8b265444nd<!-- $is-chm - (boolean) target is for CHM generation or not -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- $is-zip - (boolean) target is for ZIP generation or not -->
8794d6ba53e0d88bb9d6bee4d7e79c1a8b265444nd<!-- $message - (node-set) localized common text snippets -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- $doclang - (string) document language -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- $output-encoding - (string) MIME charset name of the output -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- encoding -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- Constants used for case translation -->
8794d6ba53e0d88bb9d6bee4d7e79c1a8b265444nd<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- space separated list of blockelements defined in common.dtd -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- used for inline content catching in <example>s -->
8794d6ba53e0d88bb9d6bee4d7e79c1a8b265444nd p example note table ul ol dl pre highlight img blockquote
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- relative path to /manual/ -->
8794d6ba53e0d88bb9d6bee4d7e79c1a8b265444nd<xsl:variable name="metafile" select="document(/*/@metafile)/metafile" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:variable name="path" select="$metafile/relpath" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- load outsourced page types -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- load utility snippets -->
97d4d9527b64d7491543a12a3d21134b857cbe4bnd<!-- make sure, we set relative anchors only, if we're actually -->
97d4d9527b64d7491543a12a3d21134b857cbe4bnd<!-- transforming a modulefile (see <directive> template) -->
97d4d9527b64d7491543a12a3d21134b857cbe4bnd<xsl:variable name="in-modulesynopsis" select="boolean(/modulesynopsis)" />
97d4d9527b64d7491543a12a3d21134b857cbe4bnd<!-- when referencing to a directory, we may need to complete the path -->
97d4d9527b64d7491543a12a3d21134b857cbe4bnd<!-- with the index file (for offline applications like *.chm files) -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- it may be desired to open external targets in a new window -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:variable name="ext-target" select="boolean($is-chm)" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive Invalid metafile. Probably your build system is not up-to-date.
58842e03db54033d15cc224d997f467abc88a97aslive Get a current version and try again.
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- #################################################################### -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- Utility templates for constructing pages -->
5e9423b4ca454c6416a2dc465dea1b1d34cec7a9slive<!-- #################################################################### -->
97d4d9527b64d7491543a12a3d21134b857cbe4bnd<!-- ==================================================================== -->
97d4d9527b64d7491543a12a3d21134b857cbe4bnd<!-- HTML head -->
5e9423b4ca454c6416a2dc465dea1b1d34cec7a9slive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <!-- the meta element is necessary for offline handling like CHM -->
97d4d9527b64d7491543a12a3d21134b857cbe4bnd content="text/html; charset={$output-encoding}" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:text>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</xsl:text>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:text>This file is generated from xml source: </xsl:text>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:text>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</xsl:text>
97d4d9527b64d7491543a12a3d21134b857cbe4bnd <xsl:value-of select="normalize-space($message[@id='apachetitle'])"/>
97d4d9527b64d7491543a12a3d21134b857cbe4bnd </title>&lf;
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <!-- chm files get a slightly different stylesheet -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive href="{$path}/style/css/manual-chm.css" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <!-- zip packages do also -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <link title="Main stylesheet" type="text/css" media="all"
8794d6ba53e0d88bb9d6bee4d7e79c1a8b265444nd rel="stylesheet"
8794d6ba53e0d88bb9d6bee4d7e79c1a8b265444nd href="{$path}/style/css/manual-zip.css" />&lf;
8794d6ba53e0d88bb9d6bee4d7e79c1a8b265444nd <link title="No Sidebar - Default font size" type="text/css" media="all"
b93889871ef8513dd6bb00a0f05bfb7df326a21bnd rel="alternate stylesheet"
b93889871ef8513dd6bb00a0f05bfb7df326a21bnd href="{$path}/style/css/manual-zip-100pc.css"/>
b93889871ef8513dd6bb00a0f05bfb7df326a21bnd <link title="Main stylesheet" type="text/css" media="all"
b93889871ef8513dd6bb00a0f05bfb7df326a21bnd rel="stylesheet"
b93889871ef8513dd6bb00a0f05bfb7df326a21bnd href="{$path}/style/css/manual.css" />&lf;
b93889871ef8513dd6bb00a0f05bfb7df326a21bnd <link title="No Sidebar - Default font size" type="text/css" media="all"
8794d6ba53e0d88bb9d6bee4d7e79c1a8b265444nd rel="alternate stylesheet"
8794d6ba53e0d88bb9d6bee4d7e79c1a8b265444nd href="{$path}/style/css/manual-loose-100pc.css"/>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive rel="stylesheet"
8794d6ba53e0d88bb9d6bee4d7e79c1a8b265444nd href="{$path}/style/css/manual-print.css"/>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <link href="{$path}/style/css/prettify.css" type="text/css" rel="stylesheet" />&lf;
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <script type="text/javascript" src="{$path}/style/scripts/prettify.js">&lf;</script>&lf;
39926890ef5576499f1bd78a1412b43e79f2f694slive <!-- chm files do not need a favicon -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <link rel="shortcut icon" href="{$path}/images/favicon.ico" />
368bcafaedaee463f769c1b5f3547b9970df90d0slive<!-- /head -->
368bcafaedaee463f769c1b5f3547b9970df90d0slive<!-- ==================================================================== -->
368bcafaedaee463f769c1b5f3547b9970df90d0slive<!-- page top -->
368bcafaedaee463f769c1b5f3547b9970df90d0slive<!-- ==================================================================== -->
87ea898bcffe2ef490e833dc246a1cc0465d783fslive [@id='apachehttpserver'])"/>
368bcafaedaee463f769c1b5f3547b9970df90d0slive <xsl:with-param name="uri" select="parentdocument/@href" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <img src="{$path}/images/left.gif" alt="<-" title="<-" />
58842e03db54033d15cc224d997f467abc88a97aslive <xsl:value-of select="$message[@id='documentation']" />
58842e03db54033d15cc224d997f467abc88a97aslive <xsl:if test="/modulesynopsis or /directiveindex or /quickreference">
46d1ef8cb385aa2f519ce7d355afc51f144bd938slive <xsl:with-param name="uri" select="parentdocument/@href"/>
46d1ef8cb385aa2f519ce7d355afc51f144bd938slive<!-- /top -->
46d1ef8cb385aa2f519ce7d355afc51f144bd938slive<!-- ==================================================================== -->
46d1ef8cb385aa2f519ce7d355afc51f144bd938slive<!-- out of date -->
46d1ef8cb385aa2f519ce7d355afc51f144bd938slive<!-- ==================================================================== -->
46d1ef8cb385aa2f519ce7d355afc51f144bd938slive<xsl:if test="$metafile/variants/variant[.=$doclang]/@outdated = 'yes'">
97d4d9527b64d7491543a12a3d21134b857cbe4bnd<!-- ==================================================================== -->
97d4d9527b64d7491543a12a3d21134b857cbe4bnd<!-- page bottom -->
97d4d9527b64d7491543a12a3d21134b857cbe4bnd<!-- ==================================================================== -->
16e03b5486a143424f332b912df99c0ef6e10130nd<xsl:when test="not($is-chm or $is-zip or $metafile/basename = 'index')">
16e03b5486a143424f332b912df99c0ef6e10130nd<div class="top"><a href="#page-header"><img alt="top" src="{$path}/images/up.gif" /></a></div>
16e03b5486a143424f332b912df99c0ef6e10130nd<h2><a name="comments_section" id="comments_section"><xsl:value-of select="$message[@id='comments']" /></a></h2>
16e03b5486a143424f332b912df99c0ef6e10130nd<div class="warning"><strong>Notice:</strong><br/>This is not a Q&A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>&lf;
16e03b5486a143424f332b912df99c0ef6e10130nd<xsl:text disable-output-escaping="yes"><![CDATA[<!--//--><![CDATA[//><!--
16e03b5486a143424f332b912df99c0ef6e10130ndvar comments_shortname = 'httpd';
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslivevar comments_identifier = 'http://httpd.apache.org/docs/]]></xsl:text>&httpd.comments;<xsl:value-of select="concat($metafile/path, $metafile/basename, '.html')" disable-output-escaping="yes" /><xsl:text disable-output-escaping="yes"><![CDATA[';
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive(function(w, d) {
16e03b5486a143424f332b912df99c0ef6e10130nd if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
16e03b5486a143424f332b912df99c0ef6e10130nd d.write('<div id="comments_thread"><\/div>');
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive var s = d.createElement('script');
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
39926890ef5576499f1bd78a1412b43e79f2f694slive d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive})(window, document);
9effaa6977a494fc6477fed772df0377b65db169nd <xsl:text>Copyright 2014 The Apache Software Foundation.</xsl:text><br />
9effaa6977a494fc6477fed772df0377b65db169nd <xsl:if test="normalize-space($message[@id='before-license'])">
58842e03db54033d15cc224d997f467abc88a97aslive <xsl:if test="normalize-space($message[@id='after-license'])">
87ea898bcffe2ef490e833dc246a1cc0465d783fslive <xsl:value-of select="$message[@id='after-license']"/>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:text disable-output-escaping="yes"><![CDATA[<!--//--><![CDATA[//><!--
3fa58e00171aebf3b2cfa90035ed530f5b1f651dsliveif (typeof(prettyPrint) !== 'undefined') {
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive prettyPrint();
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- /bottom -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- build an "available languages" section -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <a href="{$path}/{.}{$metafile/path}{$metafile/basename}.html">
97d4d9527b64d7491543a12a3d21134b857cbe4bnd select="concat($path, '/', ., $metafile/path)" />
0097a4f3e468c0192a2ce52ffee7bc8cea0a620bslive [@id='nativename']" />
<!-- related/modulelist -->
<!-- /related/modulelist -->
<!-- related/directivelist -->
<!-- /related/directivelist -->
<!-- style="zebra": alternating colors per row, i.e. every second row -->
<!-- /filter.nbsp -->
<xsl:template match="strong"><strong><xsl:apply-templates select="*|@*|text()" /></strong></xsl:template>
<xsl:template match="blockquote"><blockquote><xsl:apply-templates select="*|@*|text()" /></blockquote></xsl:template>
<!-- /helper.uri.fix -->