directiveindex.xsl revision f1110149b5b6c28ecc39d1958d98ad9cfa8e41f3
db878466c5e95073429dda0bdd001f45e9486e16fielding Licensed to the Apache Software Foundation (ASF) under one or more
db878466c5e95073429dda0bdd001f45e9486e16fielding contributor license agreements. See the NOTICE file distributed with
db878466c5e95073429dda0bdd001f45e9486e16fielding this work for additional information regarding copyright ownership.
db878466c5e95073429dda0bdd001f45e9486e16fielding The ASF licenses this file to You under the Apache License, Version 2.0
db878466c5e95073429dda0bdd001f45e9486e16fielding (the "License"); you may not use this file except in compliance with
db878466c5e95073429dda0bdd001f45e9486e16fielding the License. You may obtain a copy of the License at
beaad6ac31022179c44d88536811e9ccd9425696nd Unless required by applicable law or agreed to in writing, software
beaad6ac31022179c44d88536811e9ccd9425696nd distributed under the License is distributed on an "AS IS" BASIS,
beaad6ac31022179c44d88536811e9ccd9425696nd WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
beaad6ac31022179c44d88536811e9ccd9425696nd See the License for the specific language governing permissions and
beaad6ac31022179c44d88536811e9ccd9425696nd limitations under the License.
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!-- ==================================================================== -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!-- <directiveindex> -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!-- Builds the directive index page -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!-- ==================================================================== -->
a32843995c13450ba9433b733242977cb4970265nd select="document(
a32843995c13450ba9433b733242977cb4970265nd document(document(document(
a32843995c13450ba9433b733242977cb4970265nd )/*/@metafile)
a32843995c13450ba9433b733242977cb4970265nd /metafile/@reference
a32843995c13450ba9433b733242977cb4970265nd /modulesynopsis[status!='Obsolete']
a32843995c13450ba9433b733242977cb4970265nd /directivesynopsis[not(@location)]" />
a8571599bf3a6921cc0b9f609009e4ec1f59e1d0nd <!-- collect the start letters -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="directives" select="$directives" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <!-- letter bar -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="letters" select="$start-letters" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd select="$start-letters" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="directives" select="$directives" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!-- /directiveindex -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!-- ==================================================================== -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!-- the working horse. builds list items of all directives starting with -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!-- one letter when done, it calls itself to catch the next letter -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!-- ==================================================================== -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<xsl:variable name="letter" select="substring($letters-todo, 1, 1)"/>
7e68fce3cbd2246164e045a51ecd77f9f26680ednd select="$directives
7e68fce3cbd2246164e045a51ecd77f9f26680ednd [$letter = translate(substring(normalize-space(name), 1, 1),
7e68fce3cbd2246164e045a51ecd77f9f26680ednd $lowercase, $uppercase)]">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <a href="{/name}.html#{translate(name, $uppercase, $lowercase)}">
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!-- call next letter, if there is -->
7e68fce3cbd2246164e045a51ecd77f9f26680ednd select="substring($letters-todo, 2)" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd <xsl:with-param name="directives" select="$directives" />
7e68fce3cbd2246164e045a51ecd77f9f26680ednd<!-- /dindex-of-letter -->