common.xsl revision fffabed77cd6264da64fa3d267243d1d76897049
6fbd2e53c97ea6976d93e0ac521adabc55e0fb73nd 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.
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end The ASF licenses this file to You under the Apache License, Version 2.0
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end (the "License"); you may not use this file except in compliance with
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end 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<!-- Please, don't hard-code output strings! Use the language -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- files and the translation "stuff"... -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- Injected variables: -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- $is-chm - (boolean) target is for CHM generation or not -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- $is-zip - (boolean) target is for ZIP generation or not -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- $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 -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<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 -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive p example note table ul ol dl pre highlight img blockquote
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- relative path to /manual/ -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<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 -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- make sure, we set relative anchors only, if we're actually -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- transforming a modulefile (see <directive> template) -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<xsl:variable name="in-modulesynopsis" select="boolean(/modulesynopsis)" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- when referencing to a directory, we may need to complete the path -->
58842e03db54033d15cc224d997f467abc88a97aslive<!-- 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)" />
5e9423b4ca454c6416a2dc465dea1b1d34cec7a9slive Invalid metafile. Probably your build system is not up-to-date.
5e9423b4ca454c6416a2dc465dea1b1d34cec7a9slive Get a current version and try again.
5e9423b4ca454c6416a2dc465dea1b1d34cec7a9slive<!-- #################################################################### -->
5e9423b4ca454c6416a2dc465dea1b1d34cec7a9slive<!-- Utility templates for constructing pages -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- #################################################################### -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- HTML head -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <!-- the meta element is necessary for offline handling like CHM -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive 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>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:value-of select="normalize-space($message[@id='apachetitle'])"/>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive </title>&lf;
39926890ef5576499f1bd78a1412b43e79f2f694slive <!-- chm files get a slightly different stylesheet -->
368bcafaedaee463f769c1b5f3547b9970df90d0slive href="{$path}/style/css/manual-chm.css" />
368bcafaedaee463f769c1b5f3547b9970df90d0slive <!-- zip packages do also -->
368bcafaedaee463f769c1b5f3547b9970df90d0slive <link title="Main stylesheet" type="text/css" media="all"
368bcafaedaee463f769c1b5f3547b9970df90d0slive rel="stylesheet"
368bcafaedaee463f769c1b5f3547b9970df90d0slive href="{$path}/style/css/manual-zip.css" />&lf;
39926890ef5576499f1bd78a1412b43e79f2f694slive <link title="No Sidebar - Default font size" type="text/css" media="all"
39926890ef5576499f1bd78a1412b43e79f2f694slive rel="alternate stylesheet"
39926890ef5576499f1bd78a1412b43e79f2f694slive href="{$path}/style/css/manual-zip-100pc.css"/>
87ea898bcffe2ef490e833dc246a1cc0465d783fslive <link title="Main stylesheet" type="text/css" media="all"
87ea898bcffe2ef490e833dc246a1cc0465d783fslive rel="stylesheet"
39926890ef5576499f1bd78a1412b43e79f2f694slive href="{$path}/style/css/manual.css" />&lf;
39926890ef5576499f1bd78a1412b43e79f2f694slive <link title="No Sidebar - Default font size" type="text/css" media="all"
39926890ef5576499f1bd78a1412b43e79f2f694slive rel="alternate stylesheet"
39926890ef5576499f1bd78a1412b43e79f2f694slive href="{$path}/style/css/manual-loose-100pc.css"/>
39926890ef5576499f1bd78a1412b43e79f2f694slive rel="stylesheet"
39926890ef5576499f1bd78a1412b43e79f2f694slive href="{$path}/style/css/manual-print.css"/>
368bcafaedaee463f769c1b5f3547b9970df90d0slive <link href="{$path}/style/css/prettify.css" type="text/css" rel="stylesheet" />&lf;
368bcafaedaee463f769c1b5f3547b9970df90d0slive <script type="text/javascript" src="{$path}/style/scripts/prettify.js">&lf; </script> &lf;
04ff03c2d7e0ff45ee181eb1fa5bf7649ffcf6bfslive <!-- chm files do not need a favicon -->
368bcafaedaee463f769c1b5f3547b9970df90d0slive <link rel="shortcut icon" href="{$path}/images/favicon.ico" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- /head -->
87ea898bcffe2ef490e833dc246a1cc0465d783fslive<!-- ==================================================================== -->
87ea898bcffe2ef490e833dc246a1cc0465d783fslive<!-- page top -->
87ea898bcffe2ef490e833dc246a1cc0465d783fslive<!-- ==================================================================== -->
04ff03c2d7e0ff45ee181eb1fa5bf7649ffcf6bfslive [@id='apachehttpserver'])"/>
58842e03db54033d15cc224d997f467abc88a97aslive <xsl:with-param name="uri" select="parentdocument/@href" />
58842e03db54033d15cc224d997f467abc88a97aslive <img src="{$path}/images/left.gif" alt="<-" title="<-" />
46d1ef8cb385aa2f519ce7d355afc51f144bd938slive <xsl:value-of select="$message[@id='documentation']" />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:if test="/modulesynopsis or /directiveindex or /quickreference">
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:with-param name="uri" select="parentdocument/@href"/>
58842e03db54033d15cc224d997f467abc88a97aslive<!-- /top -->
58842e03db54033d15cc224d997f467abc88a97aslive<!-- ==================================================================== -->
58842e03db54033d15cc224d997f467abc88a97aslive<!-- out of date -->
39926890ef5576499f1bd78a1412b43e79f2f694slive<!-- ==================================================================== -->
39926890ef5576499f1bd78a1412b43e79f2f694slive<xsl:if test="$metafile/variants/variant[.=$doclang]/@outdated = 'yes'">
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- page bottom -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive<!-- ==================================================================== -->
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:text>Copyright 2012 The Apache Software Foundation.</xsl:text><br />
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:if test="normalize-space($message[@id='before-license'])">
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:value-of select="$message[@id='before-license']"/>
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:if test="normalize-space($message[@id='after-license'])">
3fa58e00171aebf3b2cfa90035ed530f5b1f651dslive <xsl:value-of select="$message[@id='after-license']"/>
0097a4f3e468c0192a2ce52ffee7bc8cea0a620bslive if (typeof(prettyPrint) !== undefined) {
0097a4f3e468c0192a2ce52ffee7bc8cea0a620bslive prettyPrint();
a7835c7a8cf86045fdaee65dc2839bfe6314fb1end<!-- /bottom -->
<!-- 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 -->