sitemap.xsl revision 4489f0b54d190e8ac29906e1071bbad6c49de17e
181e56d8b348d301d615ccf5465ae600fee2867berikabele<?xml version="1.0"?>
181e56d8b348d301d615ccf5465ae600fee2867berikabele<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp "&#160;"> ]>
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd<xsl:stylesheet version="1.0"
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
fd9abdda70912b99b24e3bf1a38f26fde908a74cnd xmlns="http://www.w3.org/1999/xhtml">
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <!-- document() works relative to the xsl (!) file -->
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <xsl:variable name="basedir" select="'../../'"/>
5a58787efeb02a1c3f06569d019ad81fd2efa06end
96ad5d81ee4a2cc66a4ae19893efc8aa6d06fae7jailletc
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim <!-- -->
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim <!-- <sitemap> -->
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen <!-- Process an entire document into an HTML page -->
2e545ce2450a9953665f701bb05350f0d3f26275nd <!-- -->
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen <xsl:template match="/sitemap">
d29d9ab4614ff992b0e8de6e2b88d52b6f1f153erbowen <html xml:lang="{$messages/@lang}" lang="{$messages/@lang}">
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim <xsl:call-template name="head"/>
5a58787efeb02a1c3f06569d019ad81fd2efa06end
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen<xsl:text>
3f08db06526d6901aa08c110b5bc7dde6bc39905nd</xsl:text> <!-- insert line break -->
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim <body id="manual-page">
5a58787efeb02a1c3f06569d019ad81fd2efa06end
3f08db06526d6901aa08c110b5bc7dde6bc39905nd<xsl:text>
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd</xsl:text> <!-- insert line break -->
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
af84459fbf938e508fd10b01cb8d699c79083813takashi <xsl:call-template name="top"/>
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd
f3ec420152ca921e4c1ce77782f51b53f659018dnd<xsl:text>
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung</xsl:text> <!-- insert line break -->
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd <div id="page-content">
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <div id="preamble">
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim <h1>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <xsl:value-of select="title"/>
5a58787efeb02a1c3f06569d019ad81fd2efa06end </h1>
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim<xsl:text>
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim</xsl:text> <!-- insert line break -->
709e3a21ba73b8433462959cd56c773454b34441trawick
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh <xsl:apply-templates select="summary"/>
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim </div> <!-- /preamble -->
5a58787efeb02a1c3f06569d019ad81fd2efa06end
5a58787efeb02a1c3f06569d019ad81fd2efa06end<xsl:text>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele</xsl:text> <!-- insert line break -->
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim <xsl:if test="count(category) > 1 or seealso">
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <div id="quickview">
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim <xsl:if test="count(category) > 1">
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <!-- category index -->
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <ul id="toc">
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele<xsl:text>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele</xsl:text> <!-- insert line break -->
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim <xsl:for-each select="category">
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim <xsl:if test="@id">
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <li>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <img src="{$path}/images/down.gif" alt="" />
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <xsl:text> </xsl:text>
dfc515decf0e3a5a980ec4e06af4eb76d4a95440rbowen <a href="#{@id}">
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <xsl:apply-templates select="title" mode="print"/>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele </a>
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim </li>
5a58787efeb02a1c3f06569d019ad81fd2efa06end
5a58787efeb02a1c3f06569d019ad81fd2efa06end<xsl:text>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele</xsl:text> <!-- insert line break -->
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele
709e3a21ba73b8433462959cd56c773454b34441trawick </xsl:if>
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen
57d0156f7bbd9ea3a72342cf9912aba61d118702rbowen <xsl:if test="not(@id)">
dfc515decf0e3a5a980ec4e06af4eb76d4a95440rbowen <li>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <img src="{$path}/images/down.gif" alt="" />
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim <xsl:text> </xsl:text>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <xsl:apply-templates select="title" mode="print"/>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele </li>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim<xsl:text>
5a58787efeb02a1c3f06569d019ad81fd2efa06end</xsl:text> <!-- insert line break -->
5a58787efeb02a1c3f06569d019ad81fd2efa06end
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele </xsl:if>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele </xsl:for-each>
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim </ul>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele<xsl:text>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele</xsl:text> <!-- insert line break -->
dfc515decf0e3a5a980ec4e06af4eb76d4a95440rbowen
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele </xsl:if>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <xsl:if test="seealso">
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <h3>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele <xsl:value-of select="$messages/message[@name='seealso']"/>
dfc515decf0e3a5a980ec4e06af4eb76d4a95440rbowen </h3>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele<xsl:text>
c8e71fab0ea4bc3f8cb07693d6917f6b4644fbdcerikabele</xsl:text> <!-- insert line break -->
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
87ffb6e33f3cbef3b9bb406cc2d27039fa336eaatrawick <ul class="seealso">
709e3a21ba73b8433462959cd56c773454b34441trawick<xsl:text>
709e3a21ba73b8433462959cd56c773454b34441trawick</xsl:text> <!-- insert line break -->
709e3a21ba73b8433462959cd56c773454b34441trawick
709e3a21ba73b8433462959cd56c773454b34441trawick <xsl:for-each select="seealso">
709e3a21ba73b8433462959cd56c773454b34441trawick <li>
709e3a21ba73b8433462959cd56c773454b34441trawick <xsl:apply-templates/>
709e3a21ba73b8433462959cd56c773454b34441trawick </li>
709e3a21ba73b8433462959cd56c773454b34441trawick
709e3a21ba73b8433462959cd56c773454b34441trawick<xsl:text>
709e3a21ba73b8433462959cd56c773454b34441trawick</xsl:text> <!-- insert line break -->
709e3a21ba73b8433462959cd56c773454b34441trawick
5a58787efeb02a1c3f06569d019ad81fd2efa06end </xsl:for-each>
3b3b7fc78d1f5bfc2769903375050048ff41ff26nd </ul>
7add1372edb1ee95a2c4d1314df4c7567bda7c62jim
af84459fbf938e508fd10b01cb8d699c79083813takashi<xsl:text>
7f5b59ccc63c0c0e3e678a168f09ee6a2f51f9d0nd</xsl:text> <!-- insert line break -->
f3ec420152ca921e4c1ce77782f51b53f659018dnd
f086b4b402fa9a2fefc7dda85de2a3cc1cd0a654rjung </xsl:if>
727872d18412fc021f03969b8641810d8896820bhumbedooh
0d0ba3a410038e179b695446bb149cce6264e0abnd </div> <!-- /quickview -->
727872d18412fc021f03969b8641810d8896820bhumbedooh
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh<xsl:text>
0d0ba3a410038e179b695446bb149cce6264e0abnd</xsl:text> <!-- insert line break -->
cc7e1025de9ac63bd4db6fe7f71c158b2cf09fe4humbedooh
727872d18412fc021f03969b8641810d8896820bhumbedooh </xsl:if>
0d0ba3a410038e179b695446bb149cce6264e0abnd
0d0ba3a410038e179b695446bb149cce6264e0abnd <xsl:apply-templates select="category"/>
0d0ba3a410038e179b695446bb149cce6264e0abnd </div> <!-- /page-content -->
ac082aefa89416cbdc9a1836eaf3bed9698201c8humbedooh
0d0ba3a410038e179b695446bb149cce6264e0abnd<xsl:text>
0d0ba3a410038e179b695446bb149cce6264e0abnd</xsl:text> <!-- insert line break -->
0d0ba3a410038e179b695446bb149cce6264e0abnd
727872d18412fc021f03969b8641810d8896820bhumbedooh <xsl:call-template name="bottom"/>
0d0ba3a410038e179b695446bb149cce6264e0abnd
0d0ba3a410038e179b695446bb149cce6264e0abnd<xsl:text>
30471a4650391f57975f60bbb6e4a90be7b284bfhumbedooh</xsl:text> <!-- insert line break -->
205f749042ed530040a4f0080dbcb47ceae8a374rjung
af33a4994ae2ff15bc67d19ff1a7feb906745bf8rbowen </body>
0d0ba3a410038e179b695446bb149cce6264e0abnd </html>
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd </xsl:template>
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd
7fec19672a491661b2fe4b29f685bc7f4efa64d4nd
5a58787efeb02a1c3f06569d019ad81fd2efa06end <!-- -->
<!-- category/page -->
<!-- -->
<xsl:template match="category/page">
<li>
<xsl:if test="@separate='yes'">
<xsl:attribute name="class">separate</xsl:attribute>
</xsl:if>
<xsl:if test="@href">
<a href="{@href}">
<xsl:value-of select="."/>
</a>
</xsl:if>
<xsl:if test="not(@href)">
<xsl:value-of select="."/>
</xsl:if>
</li>
<xsl:text>
</xsl:text> <!-- insert line break -->
</xsl:template>
<!-- /category/page -->
<!-- -->
<!-- Process a sitemap category -->
<!-- -->
<xsl:template match="category">
<xsl:call-template name="toplink"/>
<xsl:text>
</xsl:text> <!-- insert line break -->
<div class="section">
<!-- Section heading -->
<h2>
<xsl:if test="@id">
<a id="{@id}" name="{@id}">
<xsl:apply-templates select="title" mode="print"/>
</a>
</xsl:if>
<xsl:if test="not(@id)">
<xsl:apply-templates select="title" mode="print"/>
</xsl:if>
</h2>
<xsl:text>
</xsl:text> <!-- insert line break -->
<!-- category body -->
<ul>
<xsl:apply-templates select="page"/>
</ul>
<xsl:apply-templates select="modulefilelist"/>
<xsl:text>
</xsl:text> <!-- insert line break -->
</div> <!-- /.section -->
</xsl:template>
<!-- /category -->
<!-- -->
<!-- category/modulefilelist -->
<!-- insert module list into sitemap -->
<!-- -->
<xsl:template match="category/modulefilelist">
<!-- create our own translation list first -->
<xsl:variable name="translist">
<xsl:text>-</xsl:text>
<xsl:for-each select="modulefile">
<xsl:variable name="current" select="document(concat($basedir,'mod/',.))/modulesynopsis" />
<xsl:text> </xsl:text>
<xsl:value-of select="$current/name"/>
<xsl:text> </xsl:text>
<xsl:call-template name="module-translatename">
<xsl:with-param name="name" select="$current/name"/>
</xsl:call-template>
<xsl:text> -</xsl:text>
</xsl:for-each>
</xsl:variable>
<ul>
<!-- put core and mpm_common on top -->
<li>
<a href="mod/core.html">
<xsl:value-of select="$messages/message[@name='apachecore']"/>
</a>
</li>
<xsl:text>
</xsl:text> <!-- insert line break -->
<li>
<a href="mod/mpm_common.html">
<xsl:value-of select="$messages/message[@name='apachempmcommon']"/>
</a>
</li>
<xsl:text>
</xsl:text> <!-- insert line break -->
<xsl:for-each select="modulefile">
<xsl:sort select="substring-before(substring-after($translist, concat('- ', document(concat($basedir,'mod/',.))/modulesynopsis/name, ' ')), ' -')"/>
<xsl:variable name="current" select="document(concat($basedir,'mod/',.))/modulesynopsis" />
<xsl:if test="$current/status='MPM' and $current/name!='mpm_common'">
<xsl:variable name="name" select="substring-before(substring-after($translist, concat('- ', $current/name, ' ')), ' -')"/>
<li>
<a href="mod/{$current/name}.html">
<xsl:value-of select="$messages/message[@name='apachempm']"/>
<xsl:text> </xsl:text>
<xsl:value-of select="$name"/>
</a>
</li>
<xsl:text>
</xsl:text> <!-- insert line break -->
</xsl:if>
</xsl:for-each>
</ul>
<!-- /core, mpm -->
<ul>
<xsl:for-each select="modulefile">
<xsl:sort select="substring-before(substring-after($translist, concat('- ', document(concat($basedir,'mod/',.))/modulesynopsis/name, ' ')), ' -')"/>
<xsl:variable name="current" select="document(concat($basedir,'mod/',.))/modulesynopsis" />
<xsl:if test="$current/status!='MPM' and $current/status!='Core' and $current/status!='Obsolete'">
<li>
<a href="mod/{$current/name}.html">
<xsl:value-of select="$messages/message[@name='apachemodule']"/>
<xsl:text> </xsl:text>
<xsl:value-of select="$current/name"/>
</a>
</li>
<xsl:text>
</xsl:text> <!-- insert line break -->
</xsl:if>
</xsl:for-each>
</ul>
<!-- /other modules -->
</xsl:template>
<!-- /category/modulefilelist -->
</xsl:stylesheet>