convmap.xsl revision 28d6f188e60f30c3d322e0b8d15da09dcd6f0280
6ae232055d4d8a97267517c5e50074c2c819941and<?xml version="1.0"?>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and<!--
6ae232055d4d8a97267517c5e50074c2c819941and Copyright 2005 The Apache Software Foundation or its licensors, as
6ae232055d4d8a97267517c5e50074c2c819941and applicable.
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and Licensed under the Apache License, Version 2.0 (the "License");
6ae232055d4d8a97267517c5e50074c2c819941and you may not use this file except in compliance with the License.
6ae232055d4d8a97267517c5e50074c2c819941and You may obtain a copy of the License at
6ae232055d4d8a97267517c5e50074c2c819941and
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen http://www.apache.org/licenses/LICENSE-2.0
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen Unless required by applicable law or agreed to in writing, software
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen distributed under the License is distributed on an "AS IS" BASIS,
6ae232055d4d8a97267517c5e50074c2c819941and WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
6ae232055d4d8a97267517c5e50074c2c819941and See the License for the specific language governing permissions and
6ae232055d4d8a97267517c5e50074c2c819941and limitations under the License.
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen-->
3f08db06526d6901aa08c110b5bc7dde6bc39905nd
6ae232055d4d8a97267517c5e50074c2c819941and<!DOCTYPE xsl:stylesheet [
6ae232055d4d8a97267517c5e50074c2c819941and <!ENTITY lf SYSTEM "util/lf.xml">
6ae232055d4d8a97267517c5e50074c2c819941and]>
b43f840409794ed298e8634f6284741f193b6c4ftakashi<xsl:stylesheet version="1.0"
6ae232055d4d8a97267517c5e50074c2c819941and xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
6ae232055d4d8a97267517c5e50074c2c819941and xmlns="http://www.w3.org/1999/xhtml">
6ae232055d4d8a97267517c5e50074c2c819941and
b43f840409794ed298e8634f6284741f193b6c4ftakashi<xsl:output method="text" encoding="ISO-8859-1" indent="no" />
45d66a3a49ac14b7f18cd4d733c1947801b55172sf
6ae232055d4d8a97267517c5e50074c2c819941and<!-- Constants used for case translation -->
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung<xsl:variable name="lowercase" select="'abcdefghijklmnopqrstuvwxyz'" />
6ae232055d4d8a97267517c5e50074c2c819941and<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
b43f840409794ed298e8634f6284741f193b6c4ftakashi
b43f840409794ed298e8634f6284741f193b6c4ftakashi<!-- ==================================================================== -->
b43f840409794ed298e8634f6284741f193b6c4ftakashi<!-- <modulefilelist> -->
b43f840409794ed298e8634f6284741f193b6c4ftakashi<!-- Builds the rewrite map -->
6ae232055d4d8a97267517c5e50074c2c819941and<!-- ==================================================================== -->
6ae232055d4d8a97267517c5e50074c2c819941and<xsl:template match="modulefilelist">
6ae232055d4d8a97267517c5e50074c2c819941and<xsl:text># Mapping from directive names to URLs</xsl:text>&lf;
6ae232055d4d8a97267517c5e50074c2c819941and<xsl:text># GENERATED FROM XML -- DO NOT EDIT</xsl:text>&lf;
6ae232055d4d8a97267517c5e50074c2c819941and<xsl:text># You may use it as follows:</xsl:text>&lf;
6ae232055d4d8a97267517c5e50074c2c819941and<xsl:text># RewriteEngine On</xsl:text>&lf;
6ae232055d4d8a97267517c5e50074c2c819941and<xsl:text># RewriteMap dir2url </xsl:text>
6ae232055d4d8a97267517c5e50074c2c819941and<xsl:text>txt:/path/to/convenience.map</xsl:text>&lf;
6ae232055d4d8a97267517c5e50074c2c819941and<xsl:text># RewriteCond ${dir2url:$1} (.+)</xsl:text>&lf;
6ae232055d4d8a97267517c5e50074c2c819941and<xsl:text># RewriteRule ^/+([^/]+)$ /manual/%1 [R=301,NE,L]</xsl:text>&lf;&lf;
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and<xsl:apply-templates
6ae232055d4d8a97267517c5e50074c2c819941and select="document(modulefile)/modulesynopsis[status!='Obsolete']
6ae232055d4d8a97267517c5e50074c2c819941and /directivesynopsis[not(@location)]">
6ae232055d4d8a97267517c5e50074c2c819941and <xsl:sort select="name" />
6ae232055d4d8a97267517c5e50074c2c819941and</xsl:apply-templates>
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and</xsl:template>
6ae232055d4d8a97267517c5e50074c2c819941and<!-- /modulefilelist -->
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and<!-- ==================================================================== -->
6ae232055d4d8a97267517c5e50074c2c819941and<!-- <directivesynopsis> -->
6ae232055d4d8a97267517c5e50074c2c819941and<!-- ==================================================================== -->
6ae232055d4d8a97267517c5e50074c2c819941and<xsl:template match="directivesynopsis">
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and <xsl:value-of select="translate(name, $uppercase, $lowercase)" />
6ae232055d4d8a97267517c5e50074c2c819941and <xsl:text>&#9;mod/</xsl:text>
6ae232055d4d8a97267517c5e50074c2c819941and <xsl:value-of select="/name" />
6ae232055d4d8a97267517c5e50074c2c819941and <xsl:text>.html#</xsl:text>
6ae232055d4d8a97267517c5e50074c2c819941and <xsl:value-of select="translate(name, $uppercase, $lowercase)" />
6ae232055d4d8a97267517c5e50074c2c819941and &lf;
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh
6ae232055d4d8a97267517c5e50074c2c819941and</xsl:template>
6ae232055d4d8a97267517c5e50074c2c819941and<!-- /directivesynopsis -->
6ae232055d4d8a97267517c5e50074c2c819941and
6ae232055d4d8a97267517c5e50074c2c819941and</xsl:stylesheet>
6ae232055d4d8a97267517c5e50074c2c819941and