directiveindex.xsl revision 8a72c24379e10c3f3d0dfe352bf15e45ee65c179
3726777f47ac4bba3e21b075905959bbea47e72eerikabele<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- <directiveindex> -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- Builds the directive index page -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <html xml:lang="{$messages/@lang}" lang="{$messages/@lang}">
8a72c24379e10c3f3d0dfe352bf15e45ee65c179nd <xsl:variable name="directives" select="document(sitemap/category[@id='modules']/modulefilelist/modulefile)/modulesynopsis/directivesynopsis[not(@location)]"/>
a8571599bf3a6921cc0b9f609009e4ec1f59e1d0nd <!-- collect the start letters -->
3726777f47ac4bba3e21b075905959bbea47e72eerikabele <!-- letter line -->
a8571599bf3a6921cc0b9f609009e4ec1f59e1d0nd <!-- /letter line -->
a8571599bf3a6921cc0b9f609009e4ec1f59e1d0nd <xsl:with-param name="letters-todo" select="$start-letters"/>
a8571599bf3a6921cc0b9f609009e4ec1f59e1d0nd <!-- the working horse. builds list items of all -->
a8571599bf3a6921cc0b9f609009e4ec1f59e1d0nd <!-- directives starting with one letter -->
a8571599bf3a6921cc0b9f609009e4ec1f59e1d0nd <!-- when done, it calls itself to catch the next letter -->
a8571599bf3a6921cc0b9f609009e4ec1f59e1d0nd <xsl:variable name="letter" select="substring($letters-todo,1,1)"/>
8a72c24379e10c3f3d0dfe352bf15e45ee65c179nd <xsl:for-each select="$directives[$letter=translate(substring(normalize-space(name),1,1),$lowercase,$uppercase)]">
a8571599bf3a6921cc0b9f609009e4ec1f59e1d0nd <a name="{$letter}" id="{$letter}" href="{/name}.html#{translate(name,$uppercase,$lowercase)}">
a8571599bf3a6921cc0b9f609009e4ec1f59e1d0nd <a href="{/name}.html#{translate(name,$uppercase,$lowercase)}">
a8571599bf3a6921cc0b9f609009e4ec1f59e1d0nd <!-- call next letter, if there is -->
a8571599bf3a6921cc0b9f609009e4ec1f59e1d0nd <xsl:with-param name="letters-todo" select="substring($letters-todo,2)"/>
a8571599bf3a6921cc0b9f609009e4ec1f59e1d0nd <!-- /dindex-of-letter -->