common.xsl revision 7e68fce3cbd2246164e045a51ecd77f9f26680ed
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen/* ====================================================================
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * The Apache Software License, Version 1.1
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * Copyright (c) 2002-2003 The Apache Software Foundation. All rights
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * Redistribution and use in source and binary forms, with or without
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * modification, are permitted provided that the following conditions
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * 1. Redistributions of source code must retain the above copyright
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * notice, this list of conditions and the following disclaimer.
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * 2. Redistributions in binary form must reproduce the above copyright
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * notice, this list of conditions and the following disclaimer in
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * the documentation and/or other materials provided with the
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * distribution.
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * 3. The end-user documentation included with the redistribution,
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * if any, must include the following acknowledgment:
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * "This product includes software developed by the
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * Apache Software Foundation (http://www.apache.org/)."
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * Alternately, this acknowledgment may appear in the software itself,
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * if and wherever such third-party acknowledgments normally appear.
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * 4. The names "Apache" and "Apache Software Foundation" must
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * not be used to endorse or promote products derived from this
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * software without prior written permission. For written
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * permission, please contact apache@apache.org.
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * 5. Products derived from this software may not be called "Apache",
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * nor may "Apache" appear in their name, without prior written
8b197c3a8a57c3f7c231b39e5660856fd9580c80Auke Kok * permission of the Apache Software Foundation.
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho * SUCH DAMAGE.
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho * ====================================================================
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho * This software consists of voluntary contributions made by many
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho * individuals on behalf of the Apache Software Foundation. For more
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho * information on the Apache Software Foundation, please see
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek <!ENTITY nbsp SYSTEM "util/nbsp.xml">
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek<!-- Please, don't hard-code output strings! Use the language -->
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<!-- files and the translation "stuff"... -->
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen<!-- Injected variables: -->
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen<!-- $is-chm - (boolean) target is for CHM generation or not -->
fea7838e7e0b2724f5e0bc028121a08b42995045Zbigniew Jędrzejewski-Szmek<!-- $messages - (node-set) localized common text snippets -->
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen<!-- $output-encoding - (string) MIME charset name of the output -->
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen<!-- encoding -->
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen<!-- Constants used for case translation -->
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<!-- space separated list of blockelements defined in common.dtd -->
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek<!-- used for inline content catching in <example>s -->
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek<xsl:variable name="blockelements">
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek p example note table ul ol dl pre img blockquote
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen<!-- relative path to /manual/ -->
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen<xsl:variable name="path" select="document(/*/@metafile)/metafile/relpath" />
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek<!-- load outsourced page types -->
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek<xsl:include href="directiveindex.xsl" />
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek<xsl:include href="manualpage.xsl" />
fea7838e7e0b2724f5e0bc028121a08b42995045Zbigniew Jędrzejewski-Szmek<!-- load utility snippets -->
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<!-- make sure, we set relative anchors only, if we're actually -->
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<!-- transforming a modulefile (see <directive> template) -->
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<xsl:variable name="in-modulesynopsis" select="boolean(/modulesynopsis)" />
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<!-- when referencing to a directory, we may need to complete the path -->
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<!-- with the index file (for offline applications like *.chm files) -->
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<!-- it may be desired to open external targets in a new window -->
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<xsl:variable name="ext-target" select="boolean($is-chm)" />
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<!-- #################################################################### -->
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek<!-- Utility templates for constructing pages -->
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<!-- #################################################################### -->
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<!-- ==================================================================== -->
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek<!-- HTML head -->
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<!-- ==================================================================== -->
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho <!-- the meta element is necessary for offline handling like CHM -->
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho content="text/html; charset={$output-encoding}" />
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho <xsl:text>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</xsl:text>
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho <xsl:text>This file is generated from xml source: DO NOT EDIT</xsl:text>
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho <xsl:text>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX</xsl:text>
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho <xsl:value-of select="$messages/message[@name='apachetitle']"/>
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho </title>&lf;
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho <!-- chm files get a slightly different stylesheet -->
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho <link type="text/css" rel="stylesheet" media="all"
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho href="{$path}/style/css/manual-chm.css" />
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho <link title="Main stylesheet" type="text/css" media="all"
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho rel="stylesheet"
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho href="{$path}/style/css/manual.css" />&lf;
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho <link title="No Sidebar - Default font size" type="text/css" media="all"
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho rel="alternate stylesheet"
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho href="{$path}/style/css/manual-loose-100pc.css"/>
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho rel="stylesheet"
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho href="{$path}/style/css/manual-print.css"/>
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho <!-- chm files do not need a favicon -->
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho <link rel="shortcut icon" href="{$path}/images/favicon.ico" />
6656aefb42385b468dd96867118d049f945cbf81WaLyong Cho<!-- /head -->
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek<!-- ==================================================================== -->
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen<!-- page top -->
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen<!-- ==================================================================== -->
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek <xsl:call-template name="super-menu" />&lf;
ffbd2c4d45787ba5ba85a32db6551efba66a1ee6Nathaniel Chen <xsl:value-of select="$messages/message[@name='apachehttpserver']"/>
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski <img src="{$path}/images/feather.gif" alt="" />
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek <xsl:value-of select="parentdocument/@href"/>
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek <xsl:call-template name="helper.uri.fix">
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek <xsl:with-param name="uri" select="parentdocument/@href" />
a4783bd17ad96f55b0fe83a50959da13555292bfZbigniew Jędrzejewski-Szmek <img src="{$path}/images/left.gif" alt="<-" title="<-" />
abbacb1defaaecb8d2477685f7bb3fabcf58585bNathaniel Chen <xsl:attribute name="target">_blank</xsl:attribute>
4c1fc3e404d648c70bd2f50ac50aeac6ece8872eDaniel Mack <xsl:value-of select="$messages/message[@name='apache']" />
abbacb1defaaecb8d2477685f7bb3fabcf58585bNathaniel Chen <xsl:attribute name="target">_blank</xsl:attribute>
abbacb1defaaecb8d2477685f7bb3fabcf58585bNathaniel Chen <xsl:value-of select="$messages/message[@name='http-server']" />
abbacb1defaaecb8d2477685f7bb3fabcf58585bNathaniel Chen <a href="http://httpd.apache.org/docs-project/">
b9289d4c6e13ec5fb67bfce69c826d93b004da6aPhilippe De Swert <xsl:attribute name="target">_blank</xsl:attribute>
abbacb1defaaecb8d2477685f7bb3fabcf58585bNathaniel Chen <xsl:value-of select="$messages/message[@name='documentation']" />
2b3e18de74ca89b374dd4f7a2c30e5731d347841Karol Lewandowski <xsl:value-of select="$messages/message[@name='version']"/>
<!-- related/modulelist -->
<!-- /related/modulelist -->
<!-- related/directivelist -->
<!-- /related/directivelist -->
<!-- style="zebra": alternating colors per row, i.e. every second row -->
<!-- /filter.nbsp -->
<!-- /helper.uri.fix -->