new: exim-4.96.1 security release
[exim-website.git] / templates / doc / toc.xsl
index 31d7bc1e8ac11297f2dc925f9b724ae9175bb1fc..f118bffb85b193150fa1d6bbd91e51f44f2fe8e6 100644 (file)
 
          <!-- Calculate the URL to the chapter. Store in $chapter_url -->
             <xsl:variable name="chapter_url">
-               <xsl:choose>
-                  <xsl:when test="position()&lt;10">
-                     <xsl:value-of select="concat(/book/prepend_chapter,'ch',0,position(),'.html')"/>
-                  </xsl:when>
-                  <xsl:otherwise>
-                     <xsl:value-of select="concat(/book/prepend_chapter,'ch',position(),'.html')"/>
-                  </xsl:otherwise>
-               </xsl:choose>
+               <xsl:value-of select="concat(/book/prepend_chapter,'ch-',title_uri,'.html')"/>
             </xsl:variable>
 
          <!-- Chapter info -->