common.xsl revision beaad6ac31022179c44d88536811e9ccd9425696
456de5f26ad346749963525a4f91883e6a51c5f3gryzor Copyright 2002-2004 Apache Software Foundation
456de5f26ad346749963525a4f91883e6a51c5f3gryzor Licensed under the Apache License, Version 2.0 (the "License");
456de5f26ad346749963525a4f91883e6a51c5f3gryzor you may not use this file except in compliance with the License.
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc You may obtain a copy of the License at
2e545ce2450a9953665f701bb05350f0d3f26275nd Unless required by applicable law or agreed to in writing, software
456de5f26ad346749963525a4f91883e6a51c5f3gryzor distributed under the License is distributed on an "AS IS" BASIS,
456de5f26ad346749963525a4f91883e6a51c5f3gryzor WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
456de5f26ad346749963525a4f91883e6a51c5f3gryzor See the License for the specific language governing permissions and
456de5f26ad346749963525a4f91883e6a51c5f3gryzor limitations under the License.
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- Please, don't hard-code output strings! Use the language -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- files and the translation "stuff"... -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- Injected variables: -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- $is-chm - (boolean) target is for CHM generation or not -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- $is-zip - (boolean) target is for ZIP generation or not -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- $messages - (node-set) localized common text snippets -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- $output-encoding - (string) MIME charset name of the output -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- encoding -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- Constants used for case translation -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- space separated list of blockelements defined in common.dtd -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- used for inline content catching in <example>s -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor p example note table ul ol dl pre img blockquote
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- relative path to /manual/ -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<xsl:variable name="path" select="document(/*/@metafile)/metafile/relpath" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- load outsourced page types -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- load utility snippets -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- make sure, we set relative anchors only, if we're actually -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- transforming a modulefile (see <directive> template) -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<xsl:variable name="in-modulesynopsis" select="boolean(/modulesynopsis)" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- when referencing to a directory, we may need to complete the path -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- with the index file (for offline applications like *.chm files) -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:if test="$is-chm or $is-zip">index.html</xsl:if>
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- it may be desired to open external targets in a new window -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<xsl:variable name="ext-target" select="boolean($is-chm)" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- #################################################################### -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- Utility templates for constructing pages -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- #################################################################### -->
20f499565e77defe9dab24dd85c02f38a1175855nd<!-- ==================================================================== -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- HTML head -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- ==================================================================== -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <!-- the meta element is necessary for offline handling like CHM -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor content="text/html; charset={$output-encoding}" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:text>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</xsl:text>
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:text>This file is generated from xml source: DO NOT EDIT</xsl:text>
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:text>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</xsl:text>
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:value-of select="$messages/message[@name='apachetitle']"/>
456de5f26ad346749963525a4f91883e6a51c5f3gryzor </title>&lf;
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <!-- chm files get a slightly different stylesheet -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor href="{$path}/style/css/manual-chm.css" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <!-- zip packages do also -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <link title="Main stylesheet" type="text/css" media="all"
456de5f26ad346749963525a4f91883e6a51c5f3gryzor rel="stylesheet"
456de5f26ad346749963525a4f91883e6a51c5f3gryzor href="{$path}/style/css/manual-zip.css" />&lf;
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <link title="No Sidebar - Default font size" type="text/css" media="all"
456de5f26ad346749963525a4f91883e6a51c5f3gryzor rel="alternate stylesheet"
456de5f26ad346749963525a4f91883e6a51c5f3gryzor href="{$path}/style/css/manual-zip-100pc.css"/>
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <link title="Main stylesheet" type="text/css" media="all"
456de5f26ad346749963525a4f91883e6a51c5f3gryzor rel="stylesheet"
456de5f26ad346749963525a4f91883e6a51c5f3gryzor href="{$path}/style/css/manual.css" />&lf;
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <link title="No Sidebar - Default font size" type="text/css" media="all"
456de5f26ad346749963525a4f91883e6a51c5f3gryzor rel="alternate stylesheet"
456de5f26ad346749963525a4f91883e6a51c5f3gryzor href="{$path}/style/css/manual-loose-100pc.css"/>
456de5f26ad346749963525a4f91883e6a51c5f3gryzor rel="stylesheet"
456de5f26ad346749963525a4f91883e6a51c5f3gryzor href="{$path}/style/css/manual-print.css"/>
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <!-- chm files do not need a favicon -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <link rel="shortcut icon" href="{$path}/images/favicon.ico" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- /head -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- ==================================================================== -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- page top -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- ==================================================================== -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:value-of select="$messages/message[@name='apachehttpserver']"/>
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:with-param name="uri" select="parentdocument/@href" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <img src="{$path}/images/left.gif" alt="<-" title="<-" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:value-of select="$messages/message[@name='apache']" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:value-of select="$messages/message[@name='http-server']" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:value-of select="$messages/message[@name='documentation']" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:value-of select="$messages/message[@name='version']"/>
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:if test="/modulesynopsis or /directiveindex or /quickreference">
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:value-of select="$messages/message[@name='modules']"/>
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:with-param name="uri" select="parentdocument/@href"/>
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- /top -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- ==================================================================== -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- page bottom -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- ==================================================================== -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:value-of select="$messages/message[@name='maintainedby']"/>
4aa603e6448b99f9371397d439795c91a93637eand <xsl:text>Apache HTTP Server Documentation Project</xsl:text>
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- /bottom -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- ==================================================================== -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- build an "available languages" section -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<!-- ==================================================================== -->
456de5f26ad346749963525a4f91883e6a51c5f3gryzor<xsl:variable name="metafile" select="document(/*/@metafile)/metafile" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <xsl:value-of select="$messages/message[@name='langavail']" />
456de5f26ad346749963525a4f91883e6a51c5f3gryzor <a href="{$path}/{.}{$metafile/path}{$metafile/basename}.html">
456de5f26ad346749963525a4f91883e6a51c5f3gryzor select="concat($path, '/', ., $metafile/path)" />
<!-- 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 -->