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