common.xsl revision 480bee29abcc415b6b8c18d2ecbf2c5f88f1f05b
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<?xml version="1.0"?>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:stylesheet version="1.0"
7e68fce3cbd2246164e045a51ecd77f9f26680ednd xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
7e68fce3cbd2246164e045a51ecd77f9f26680ednd xmlns="http://www.w3.org/1999/xhtml">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Please, don't hard-code output strings! Use the language -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- files and the translation "stuff"... -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Constants used for case translation -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!--
7e68fce3cbd2246164e045a51ecd77f9f26680ednd space separated list of blockelements defined in common.dtd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd used for inline content catching in <example>s
7e68fce3cbd2246164e045a51ecd77f9f26680ednd -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="blockelements">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd p example note table ul ol dl pre img blockquote
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:variable>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- relative path to /manual/ -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="path">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:when test="*/relativepath/@href">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="*/relativepath/@href"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:when>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:otherwise>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="'..'"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:otherwise>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:variable>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- load outsourced page types -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:include href="moduleindex.xsl"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:include href="directiveindex.xsl"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:include href="manualpage.xsl"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:include href="synopsis.xsl"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:include href="sitemap.xsl"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:include href="quickreference.xsl"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- make sure, we set relative anchors
7e68fce3cbd2246164e045a51ecd77f9f26680ednd only, if we're actually transforming
7e68fce3cbd2246164e045a51ecd77f9f26680ednd a modulefile (see <directive>) -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="in-modulesynopsis"><xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:when test="/quickreference">0</xsl:when>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:otherwise>1</xsl:otherwise></xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:variable>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Utility templates for constructing pages -->
01c674544bd4c211141bcd9fb09b96ffc18c6c3dnd <!-- -->
01c674544bd4c211141bcd9fb09b96ffc18c6c3dnd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
01c674544bd4c211141bcd9fb09b96ffc18c6c3dnd <!-- -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- HTML head -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:template name="head">
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <head>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:comment>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
7e68fce3cbd2246164e045a51ecd77f9f26680ednd This file is generated from xml source: DO NOT EDIT
7e68fce3cbd2246164e045a51ecd77f9f26680ednd XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:comment>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <title>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:when test="name">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="name"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:when>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:otherwise>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="title"/>
bdbf46e4950b6f633073f803486962e82c2f086and </xsl:otherwise>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text> </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='apachetitle']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </title>
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 <link type="text/css" media="print"
7e68fce3cbd2246164e045a51ecd77f9f26680ednd rel="stylesheet"
7e68fce3cbd2246164e045a51ecd77f9f26680ednd href="{$path}/style/css/manual-print.css"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <link rel="shortcut icon" href="{$path}/images/favicon.ico" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </head>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /head -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- page top -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template name="top">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <div id="page-header">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:call-template name="super-menu" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <p class="apache">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='apachehttpserver']"/>
bdbf46e4950b6f633073f803486962e82c2f086and </p>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
bdbf46e4950b6f633073f803486962e82c2f086and <img src="{$path}/images/feather.gif" alt="" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </div> <!-- /page-header -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <div class="up">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="./">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="parentdocument">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:attribute name="href"><xsl:value-of select="parentdocument/@href"/></xsl:attribute>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <img src="{$path}/images/left.gif" alt="&lt;-" title="&lt;-" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </div>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <div id="path">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="http://www.apache.org/">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='apache']"/>
bdbf46e4950b6f633073f803486962e82c2f086and </a>
bdbf46e4950b6f633073f803486962e82c2f086and <xsl:text> &gt; </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="http://httpd.apache.org/">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='http-server']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text> &gt; </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="http://httpd.apache.org/docs-project/">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='documentation']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text> &gt; </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="{$path}/">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='version']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="/modulesynopsis or /directiveindex or /quickreference">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text> &gt; </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="./">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='modules']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="parentdocument">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text> &gt; </xsl:text>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <a href="{parentdocument/@href}">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="parentdocument"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </div> <!-- /path -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- /top -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- page bottom -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template name="bottom">
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd <div id="footer">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <p class="apache">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='maintainedby']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text> </xsl:text>
bdbf46e4950b6f633073f803486962e82c2f086and <a href="http://httpd.apache.org/docs-project/"
bdbf46e4950b6f633073f803486962e82c2f086and >Apache HTTP Server Documentation Project</a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </p>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
bdbf46e4950b6f633073f803486962e82c2f086and <xsl:call-template name="super-menu"/>
bdbf46e4950b6f633073f803486962e82c2f086and
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </div> <!-- /footer -->
bdbf46e4950b6f633073f803486962e82c2f086and </xsl:template>
bdbf46e4950b6f633073f803486962e82c2f086and <!-- /bottom -->
bdbf46e4950b6f633073f803486962e82c2f086and
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
d177004a74b061338daf7f2603197d673ed76d36kess <!-- Process a documentation section -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="section">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd <xsl:call-template name="toplink"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <div class="section">
bdbf46e4950b6f633073f803486962e82c2f086and
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Section heading -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <h2>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@id">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a id="{@id}" name="{@id}">
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd <xsl:apply-templates select="title" mode="print"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="not(@id)">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="title" mode="print"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </h2>
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Section body -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:apply-templates/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd </div> <!-- /.section -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /section -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
480bee29abcc415b6b8c18d2ecbf2c5f88f1f05bnd <!-- handle subsections (lower level headings) -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="section/section">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Section heading -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <h3>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@id">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a id="{@id}" name="{@id}">
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd <xsl:apply-templates select="title" mode="print"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="not(@id)">
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:apply-templates select="title" mode="print"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </h3>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Section body -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd <!-- /section/section -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- handle subsubsections (h4) -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="section/section/section">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Section heading -->
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd <h4>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@id">
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <a id="{@id}" name="{@id}">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="title" mode="print"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="not(@id)">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="title" mode="print"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </h4>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- Section body -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /section/section/section -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- section nesting > h4 is not supported for now -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="section/section/section/section">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:message terminate="yes">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text>FATAL: exceeding maximum section nesting level.
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd Perhaps you should consider to split your document into
7e68fce3cbd2246164e045a51ecd77f9f26680ednd several ones...
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:message>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /section/section/section/section -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- (sub)section titles -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="section/title" mode="print">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates/>
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd </xsl:template>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="section/title">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Don't print the title twice -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /section/title -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- generate section index -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="section" mode="index">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@id">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <li>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <img src="{$path}/images/down.gif" alt="" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text> </xsl:text>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <a href="#{@id}">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="title" mode="print"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </li>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:if test="not(@id)">
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <li>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <img src="{$path}/images/down.gif" alt="" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text> </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="title" mode="print"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- nested sections -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- NOT FOR NOW -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!--
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:if test="section">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <ul>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="section" mode="index"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </ul>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </li>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /section index -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
d177004a74b061338daf7f2603197d673ed76d36kess <!-- docs super menu -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template name="super-menu">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <p class="menu">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="{$path}/mod/">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='modules']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text> | </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="{$path}/mod/directives.html">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='directives']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text> | </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="{$path}/faq/">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='faq']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
65241490e40aa0c831988073eed0633dad10c6f2nd <xsl:text> | </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="{$path}/glossary.html">
65241490e40aa0c831988073eed0633dad10c6f2nd <xsl:value-of select="$messages/message[@name='glossary']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
65241490e40aa0c831988073eed0633dad10c6f2nd <xsl:text> | </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="{$path}/sitemap.html">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='sitemap']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </p>
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /super-menu -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
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 <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="blocks"
7e68fce3cbd2246164e045a51ecd77f9f26680ednd select="concat(' ', normalize-space($blockelements), ' ')"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="example">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <div class="example">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="title" mode="print"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:for-each select="/node()">
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
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="$is-block-node or position()=last()">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="content">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="preceding-sibling::node()[count(preceding-sibling::*[contains($blocks,concat(' ',local-name(),' '))]) &gt;= $bb]"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="self::node()[not($is-block-node)]"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:variable>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- apply bare text only, if it's not only \s or empty -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="normalize-space($content) != ''">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <p><code>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:copy-of select="$content"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </code></p>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="self::node()[$is-block-node]"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:for-each>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /node() -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </div> <!-- /.example -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /example -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- example/title -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="example/title" mode="print">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <h3>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </h3>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="example/title">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- don't print twice -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /example/title -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- indent -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="indent">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <span class="indent">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </span>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /indent -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <note> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Notes are placed in a table. Uses different back- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- ground colors, depending on type of note. -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="note">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <div class="note">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@type='warning'">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:attribute name="class">warning</xsl:attribute>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </div>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /note -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
65241490e40aa0c831988073eed0633dad10c6f2nd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <note><title> -->
65241490e40aa0c831988073eed0633dad10c6f2nd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="note/title">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <h3>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates/>
65241490e40aa0c831988073eed0633dad10c6f2nd </h3>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- /note/title -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- <directive> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Inserts link to another directive, which might be -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- in another module. References are converted into -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- lower case. -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="directive" name="directive">
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <code class="directive">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd <xsl:if test="@module">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="lowerdirective" select="translate(., $uppercase, $lowercase)"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:when test="$in-modulesynopsis = '1' and @module = /modulesynopsis/name">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="#{$lowerdirective}">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@type='section'">&lt;</xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="."/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@type='section'">&gt;</xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:when>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:otherwise>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="obs_">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@status = 'obsolete'">obs_</xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:variable>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="{$path}/mod/{$obs_}{@module}.html#{$lowerdirective}">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@type='section'">&lt;</xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="."/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@type='section'">&gt;</xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:otherwise>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="not(@module)">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@type='section'">&lt;</xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="."/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@type='section'">&gt;</xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </code>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /directive -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <module> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Inserts a link to refereed module -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="module" name="module">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="obs_">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@status = 'obsolete'">obs_</xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:variable>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <code class="module">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="{$path}/mod/{$obs_}{.}.html">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="."/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
d3cd98e7839dd1c737c18d42a916ed20860a50e1nd </code>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /module -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <related> -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="related">
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <table class="related">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <tr>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <th>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$messages/message[@name='relatedmodules']"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </th>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <th>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:value-of select="$messages/message[@name='relateddirectives']"/>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </th>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </tr>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <tr>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <td>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="count(modulelist/*) &gt; 0">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <ul>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="modulelist"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </ul>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </td>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
480bee29abcc415b6b8c18d2ecbf2c5f88f1f05bnd <td>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="count(directivelist/*) &gt; 0">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <ul>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="directivelist"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </ul>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </td>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </tr>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </table>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- /related -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="related/modulelist">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:for-each select="module">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <li>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:call-template name="module"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </li>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:for-each>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="related/directivelist">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:for-each select="directive">
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <li>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:call-template name="directive"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </li>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:for-each>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <table> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="table">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <table>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@border">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:attribute name="class">bordered</xsl:attribute>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:when test="@style = 'zebra'">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:for-each select="tr">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <tr><xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:when test="count(td) = 0">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:attribute name="class">header</xsl:attribute>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:when>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:when test="position() mod 2 = (count(preceding-sibling::*[count(td) = 0]) mod 2)">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:attribute name="class">odd</xsl:attribute>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:when></xsl:choose>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </tr>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:text> <!-- insert line break -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:for-each>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:when>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:otherwise>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates />
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:otherwise>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:choose>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </table>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:template>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- /table -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <ol type -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="ol">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <ol>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="@type = 'A'">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:attribute name="class">up-A</xsl:attribute>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </ol>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /ol type -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <summary> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Passes through content -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="summary">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /summary -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <description> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Passes through content -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="description">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /description -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- <hint> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Passes through content -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="hint">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /description -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <usage> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Passes through content -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="usage">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /usage -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- <syntax> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Passes through content -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <xsl:template match="syntax">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /syntax -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- toplink -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template name="toplink">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <div class="top">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="#page-header"><img src="{$path}/images/up.gif" alt="top" /></a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </div>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- /toplink -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- Process everything else by just passing it through -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template match="*|@*">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:copy>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:apply-templates select="@*|*|text()"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:copy>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
480bee29abcc415b6b8c18d2ecbf2c5f88f1f05bnd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- create a letter bar -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- used in several documents -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template name="letter-bar">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:param name="letters"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:param name="first"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="not($first)">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text> | </xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="#{substring($letters,1,1)}">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text>&nbsp;</xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="substring($letters,1,1)"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:text>&nbsp;</xsl:text>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </a>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="string-length($letters) &gt; 1">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:call-template name="letter-bar">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="letters" select="substring($letters,2)"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="first" select="false()"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:call-template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- template(s) for collecting all start letters -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- of directives -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- used in several documents -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template name="directive-startletters">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:param name="directives"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:call-template name="_squeeze-letters">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="lastletter" select="''"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="letters">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:for-each select="$directives">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:sort select="name"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="translate(substring(normalize-space(name),1,1),$lowercase,$uppercase)"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:for-each>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:with-param>
480bee29abcc415b6b8c18d2ecbf2c5f88f1f05bnd </xsl:call-template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
3726777f47ac4bba3e21b075905959bbea47e72eerikabele </xsl:template>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:template name="_squeeze-letters">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:param name="letters"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:param name="lastletter"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:variable name="current" select="substring($letters,1,1)"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="$lastletter != $current">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:value-of select="$current"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:if test="string-length($letters) &gt; 1">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:call-template name="_squeeze-letters">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="letters" select="substring($letters,2)"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="lastletter" select="$current"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:call-template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:if>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd </xsl:template>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd
7e68fce3cbd2246164e045a51ecd77f9f26680ednd</xsl:stylesheet>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd