common.xsl revision 480bee29abcc415b6b8c18d2ecbf2c5f88f1f05b
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Please, don't hard-code output strings! Use the language -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- files and the translation "stuff"... -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Constants used for case translation -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd space separated list of blockelements defined in common.dtd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd used for inline content catching in <example>s
7e68fce3cbd2246164e045a51ecd77f9f26680ednd p example note table ul ol dl pre img blockquote
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- relative path to /manual/ -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- load outsourced page types -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- make sure, we set relative anchors
7e68fce3cbd2246164e045a51ecd77f9f26680ednd only, if we're actually transforming
7e68fce3cbd2246164e045a51ecd77f9f26680ednd a modulefile (see <directive>) -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Utility templates for constructing pages -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- HTML head -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7e68fce3cbd2246164e045a51ecd77f9f26680ednd This file is generated from xml source: DO NOT EDIT
7e68fce3cbd2246164e045a51ecd77f9f26680ednd XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='apachetitle']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <link title="Main stylesheet" type="text/css" media="all" rel="stylesheet"
7e68fce3cbd2246164e045a51ecd77f9f26680ednd href="{$path}/style/css/manual.css" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <link title="No Sidebar - Default font size" type="text/css" media="all"
7e68fce3cbd2246164e045a51ecd77f9f26680ednd rel="alternate stylesheet"
7e68fce3cbd2246164e045a51ecd77f9f26680ednd href="{$path}/style/css/manual-loose-100pc.css"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd rel="stylesheet"
7e68fce3cbd2246164e045a51ecd77f9f26680ednd href="{$path}/style/css/manual-print.css"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <link rel="shortcut icon" href="{$path}/images/favicon.ico" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /head -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- page top -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='apachehttpserver']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:attribute name="href"><xsl:value-of select="parentdocument/@href"/></xsl:attribute>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <img src="{$path}/images/left.gif" alt="<-" title="<-" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='apache']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='http-server']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='documentation']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='version']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="/modulesynopsis or /directiveindex or /quickreference">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='modules']"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- /top -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- page bottom -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='maintainedby']"/>
bdbf46e4950b6f633073f803486962e82c2f086and >Apache HTTP Server Documentation Project</a>
bdbf46e4950b6f633073f803486962e82c2f086and <!-- /bottom -->
d177004a74b061338daf7f2603197d673ed76d36kess <!-- Process a documentation section -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Section heading -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Section body -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /section -->
480bee29abcc415b6b8c18d2ecbf2c5f88f1f05bnd <!-- handle subsections (lower level headings) -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Section heading -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:apply-templates select="title" mode="print"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Section body -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- handle subsubsections (h4) -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Section heading -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- Section body -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- section nesting > h4 is not supported for now -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text>FATAL: exceeding maximum section nesting level.
7e68fce3cbd2246164e045a51ecd77f9f26680ednd Perhaps you should consider to split your document into
7e68fce3cbd2246164e045a51ecd77f9f26680ednd several ones...
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- (sub)section titles -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Don't print the title twice -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- generate section index -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- nested sections -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- NOT FOR NOW -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:if test="section">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="section" mode="index"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /section index -->
d177004a74b061338daf7f2603197d673ed76d36kess <!-- docs super menu -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='modules']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='directives']"/>
65241490e40aa0c831988073eed0633dad10c6f2nd <xsl:value-of select="$messages/message[@name='glossary']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='sitemap']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /super-menu -->
65241490e40aa0c831988073eed0633dad10c6f2nd <!-- <example> -->
65241490e40aa0c831988073eed0633dad10c6f2nd <!-- iterate over *all* nodes; bare text and other -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- inline stuff is wrapped into <p><code>, block -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- level elements (defined in $blockelements) are -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- applied "as is" -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd select="concat(' ', normalize-space($blockelements), ' ')"/>
65241490e40aa0c831988073eed0633dad10c6f2nd <xsl:variable name="is-block-node" select="boolean(contains($blocks, concat(' ',local-name(),' ')))"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="bb" select="count(preceding-sibling::*[contains($blocks,concat(' ',local-name(),' '))])"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="preceding-sibling::node()[count(preceding-sibling::*[contains($blocks,concat(' ',local-name(),' '))]) >= $bb]"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="self::node()[not($is-block-node)]"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- apply bare text only, if it's not only \s or empty -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="self::node()[$is-block-node]"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /node() -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /example -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- don't print twice -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- indent -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /indent -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <note> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Notes are placed in a table. Uses different back- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- ground colors, depending on type of note. -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /note -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <note><title> -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- <directive> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Inserts link to another directive, which might be -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- in another module. References are converted into -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- lower case. -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="lowerdirective" select="translate(., $uppercase, $lowercase)"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:when test="$in-modulesynopsis = '1' and @module = /modulesynopsis/name">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="{$path}/mod/{$obs_}{@module}.html#{$lowerdirective}">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /directive -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <module> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Inserts a link to refereed module -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /module -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <related> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='relatedmodules']"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:value-of select="$messages/message[@name='relateddirectives']"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- /related -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <table> -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:when test="position() mod 2 = (count(preceding-sibling::*[count(td) = 0]) mod 2)">
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- /table -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <ol type -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /ol type -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <summary> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Passes through content -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /summary -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <description> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Passes through content -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /description -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- <hint> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Passes through content -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /description -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <usage> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Passes through content -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /usage -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <syntax> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Passes through content -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /syntax -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- toplink -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="#page-header"><img src="{$path}/images/up.gif" alt="top" /></a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /toplink -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Process everything else by just passing it through -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- create a letter bar -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- used in several documents -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="letters" select="substring($letters,2)"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- template(s) for collecting all start letters -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- of directives -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- used in several documents -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="translate(substring(normalize-space(name),1,1),$lowercase,$uppercase)"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="current" select="substring($letters,1,1)"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="letters" select="substring($letters,2)"/>