directiveindex.xsl revision 5e9423b4ca454c6416a2dc465dea1b1d34cec7a9
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd<?xml version="1.0"?><!--
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd/* ====================================================================
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * The Apache Software License, Version 1.1
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd *
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * Copyright (c) 2002-2003 The Apache Software Foundation. All rights
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * reserved.
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd *
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * Redistribution and use in source and binary forms, with or without
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * modification, are permitted provided that the following conditions
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * are met:
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd *
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * 1. Redistributions of source code must retain the above copyright
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * notice, this list of conditions and the following disclaimer.
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd *
27e52281f1522522b170cafc76b08b58aa70ccaand * 2. Redistributions in binary form must reproduce the above copyright
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * notice, this list of conditions and the following disclaimer in
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * the documentation and/or other materials provided with the
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * distribution.
4b5981e276e93df97c34e4da05ca5cf8bbd937dand *
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * 3. The end-user documentation included with the redistribution,
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd * if any, must include the following acknowledgment:
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd * "This product includes software developed by the
ecc5150d35c0dc5ee5119c2717e6660fa331abbftakashi * Apache Software Foundation (http://www.apache.org/)."
bc9d4698fce0238d2f6f2682e99423ebb1149976rbowen * Alternately, this acknowledgment may appear in the software itself,
ad74a0524a06bfe11b7de9e3b4ce7233ab3bd3f7nd * if and wherever such third-party acknowledgments normally appear.
63f06dce77bb2d9b1c5aa5deeb47a1069987fd1end *
ecc5150d35c0dc5ee5119c2717e6660fa331abbftakashi * 4. The names "Apache" and "Apache Software Foundation" must
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * not be used to endorse or promote products derived from this
b03f9485e6dfcf9326e6122f91eaa1ced8939818jim * software without prior written permission. For written
b03f9485e6dfcf9326e6122f91eaa1ced8939818jim * permission, please contact apache@apache.org.
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd *
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * 5. Products derived from this software may not be called "Apache",
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * nor may "Apache" appear in their name, without prior written
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * permission of the Apache Software Foundation.
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd *
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * DISCLAIMED. IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * SUCH DAMAGE.
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * ====================================================================
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd *
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * This software consists of voluntary contributions made by many
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd * individuals on behalf of the Apache Software Foundation. For more
80eed96ee3d8cfa0b66d9fb1cfe63fd83254d38bnilgun * information on the Apache Software Foundation, please see
80eed96ee3d8cfa0b66d9fb1cfe63fd83254d38bnilgun * <http://www.apache.org/>.
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd */ -->
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd<!DOCTYPE xsl:stylesheet [
316f02e3836836c82e19019ff23f90a7ebc65289nilgun <!ENTITY lf SYSTEM "util/lf.xml">
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd]>
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd<xsl:stylesheet version="1.0"
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd xmlns="http://www.w3.org/1999/xhtml">
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd<!-- ==================================================================== -->
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd<!-- <directiveindex> -->
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd<!-- Builds the directive index page -->
08cf4a15275e4cb65a424b3a1db5410bfb51085cjim<!-- ==================================================================== -->
22d5d84393d960a2027f472036f3fee15d7dbce9nd<xsl:template match="directiveindex">
22d5d84393d960a2027f472036f3fee15d7dbce9nd<html xml:lang="{$messages/@lang}" lang="{$messages/@lang}">
22d5d84393d960a2027f472036f3fee15d7dbce9nd <xsl:call-template name="head"/>&lf;
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd <body id="directive-index">
a78048ccbdb6256da15e6b0e7e95355e480c2301nd <xsl:call-template name="top"/>
50c04f297d76a57ead2fa6b73845f7563b1fc788sf
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd <xsl:variable name="directives"
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd select="document(modulefilelist/modulefile)
a78048ccbdb6256da15e6b0e7e95355e480c2301nd /modulesynopsis[status!='Obsolete']
623eebe956d9c2d6d073ed3eae855b56030b40e9noodl /directivesynopsis[not(@location)]" />
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd <!-- collect the start letters -->
ffb88a4885747797937e30a5ac8b1606da3cb4adnd <xsl:variable name="start-letters">
909ce17e2bd0faef7b1c294f2307f009793fd493nd <xsl:call-template name="directive-startletters">
a78048ccbdb6256da15e6b0e7e95355e480c2301nd <xsl:with-param name="directives" select="$directives" />
a78048ccbdb6256da15e6b0e7e95355e480c2301nd </xsl:call-template>
cd34a6fbf0a2619544a72eadb73f309370bf6682wrowe </xsl:variable>
cd34a6fbf0a2619544a72eadb73f309370bf6682wrowe
42af92a661a06b3cebc88d585aad75064a309d51nd <div id="preamble">
42af92a661a06b3cebc88d585aad75064a309d51nd <h1>
ffb88a4885747797937e30a5ac8b1606da3cb4adnd <xsl:value-of select="title" />
6fe26506780e73be2a412d758af77fafdf03291and </h1>&lf;
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd <xsl:call-template name="langavail" />&lf;
9649d29bb7801e0698e6a845e1a8a61534df58b3noodl
9649d29bb7801e0698e6a845e1a8a61534df58b3noodl <xsl:apply-templates select="summary" />&lf;
a78048ccbdb6256da15e6b0e7e95355e480c2301nd
a78048ccbdb6256da15e6b0e7e95355e480c2301nd <!-- letter bar -->
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd <p class="letters">
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd <xsl:call-template name="letter-bar">
08cf4a15275e4cb65a424b3a1db5410bfb51085cjim <xsl:with-param name="letters" select="$start-letters" />
6aadbc6fd703e73d1d419e9f06b84a4338c898f1maczniak <xsl:with-param name="first" select="true()" />
78f97ce162b66a0dbfd7af4dcd9984f162569b04minfrin </xsl:call-template>
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd </p>&lf; <!-- /.letters -->
8574d86b9ec3be36b7f54ed0547a0ee5d60dbd6bnd </div>&lf; <!-- /preamble -->
8574d86b9ec3be36b7f54ed0547a0ee5d60dbd6bnd
8574d86b9ec3be36b7f54ed0547a0ee5d60dbd6bnd <div id="directive-list">
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd <ul>&lf;
8574d86b9ec3be36b7f54ed0547a0ee5d60dbd6bnd <xsl:call-template name="dindex-of-letter">
8574d86b9ec3be36b7f54ed0547a0ee5d60dbd6bnd <xsl:with-param name="letters-todo"
05ede5110427cb9dc071cc671d5aaba5d3b88c79nd select="$start-letters" />
e8b603fa9ccf7b17b11b42df6d8916fd97c2331dnd <xsl:with-param name="directives" select="$directives" />
8574d86b9ec3be36b7f54ed0547a0ee5d60dbd6bnd </xsl:call-template>
4ed26c413f67a5aae20b95909828f30bb5dc2286poirier </ul>
8574d86b9ec3be36b7f54ed0547a0ee5d60dbd6bnd </div>&lf; <!-- /#directive-list -->
8574d86b9ec3be36b7f54ed0547a0ee5d60dbd6bnd
611049e38bfbaeb173d2d7fab2e44a48753436a1nd <xsl:call-template name="bottom" />&lf;
8574d86b9ec3be36b7f54ed0547a0ee5d60dbd6bnd </body>
8574d86b9ec3be36b7f54ed0547a0ee5d60dbd6bnd</html>
8574d86b9ec3be36b7f54ed0547a0ee5d60dbd6bnd</xsl:template>
a78048ccbdb6256da15e6b0e7e95355e480c2301nd<!-- /directiveindex -->
6aadbc6fd703e73d1d419e9f06b84a4338c898f1maczniak
6aadbc6fd703e73d1d419e9f06b84a4338c898f1maczniak
a78048ccbdb6256da15e6b0e7e95355e480c2301nd<!-- ==================================================================== -->
a78048ccbdb6256da15e6b0e7e95355e480c2301nd<!-- the working horse. builds list items of all directives starting with -->
a78048ccbdb6256da15e6b0e7e95355e480c2301nd<!-- one letter when done, it calls itself to catch the next letter -->
03a4ff9ac4c9b8009249010e7c53bb86ff05915and<!-- ==================================================================== -->
f21bea4c0f58e17aa1d9a0fac2c219852f89944amaczniak<xsl:template name="dindex-of-letter">
d0828c8a321dc5e9ea60550f052294669c08cf93jim<xsl:param name="letters-todo" />
d0828c8a321dc5e9ea60550f052294669c08cf93jim<xsl:param name="directives" />
f21bea4c0f58e17aa1d9a0fac2c219852f89944amaczniak
4b5981e276e93df97c34e4da05ca5cf8bbd937dand<xsl:variable name="letter" select="substring($letters-todo, 1, 1)"/>
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd
f21bea4c0f58e17aa1d9a0fac2c219852f89944amaczniak<xsl:for-each
6aadbc6fd703e73d1d419e9f06b84a4338c898f1maczniak select="$directives
2704de98885368683621b01c8f8f4e4b01557611takashi [$letter = translate(substring(normalize-space(name), 1, 1),
2704de98885368683621b01c8f8f4e4b01557611takashi $lowercase, $uppercase)]">
2704de98885368683621b01c8f8f4e4b01557611takashi<xsl:sort select="name" />
d0828c8a321dc5e9ea60550f052294669c08cf93jim <li>
2704de98885368683621b01c8f8f4e4b01557611takashi <a href="{/name}.html#{translate(name, $uppercase, $lowercase)}">
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd <xsl:if test="position() = 1">
6aadbc6fd703e73d1d419e9f06b84a4338c898f1maczniak <xsl:attribute name="id">
d2b809e5d72658bff23819d8b77f20e4939af541nd <xsl:value-of select="$letter" />
a78048ccbdb6256da15e6b0e7e95355e480c2301nd </xsl:attribute>
4ed26c413f67a5aae20b95909828f30bb5dc2286poirier <xsl:attribute name="name">
4ed26c413f67a5aae20b95909828f30bb5dc2286poirier <xsl:value-of select="$letter" />
cd6c8de3bedcc401ee230159b0439fa20f44488etakashi </xsl:attribute>
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd </xsl:if>
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd <xsl:if test="@type = 'section'">&lt;</xsl:if>
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd <xsl:value-of select="name" />
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd <xsl:if test="@type = 'section'">&gt;</xsl:if>
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd </a>
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd </li>&lf;
1de1266f0ea387d6373be8415745dfd2ab876341jim</xsl:for-each>
27d778df0b517e1578f907d2e51eb961cd8ee5fbjim
a610901168de82df5fc5d99b8759fd80e0f70aeasf<!-- call next letter, if there is -->
a43bfa789f4e52dde53ae8e53fa0427b5c1cf977nd<xsl:if test="string-length($letters-todo) &gt; 1">
a43bfa789f4e52dde53ae8e53fa0427b5c1cf977nd <xsl:call-template name="dindex-of-letter">
28c9d384aa958b321280b4ac886941dcad25396bnd <xsl:with-param name="letters-todo"
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd select="substring($letters-todo, 2)" />
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd <xsl:with-param name="directives" select="$directives" />
1d980e5489836e977ba59b419e27b0ec875c4bd3takashi </xsl:call-template>
e5ce3ac0e9b720c0fa23782e29168a0810697fdetakashi</xsl:if>
604c89126c27104f659d7a51b0113e3bd435faf8fielding
50cb7e2b30597f481fee57bac945190f06ebcc58jorton</xsl:template>
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd<!-- /dindex-of-letter -->
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd</xsl:stylesheet>
0853e1e2522c1ac17f697221758bcbd4781a7ff9nd