&ul.start; &lf;&tab;
<xsl:apply-templates select="page" />
- <xsl:apply-templates select="modulefilelist" />
+ <xsl:if test="@id = 'modules'">
+ <xsl:apply-templates select="document($allmodules)/modulefilelist" />
+ </xsl:if>
&ul.end; &lf;
&li.end; &lf;&tab;
</xsl:for-each>&lf;
<!-- category/modulefilelist -->
<!-- process all listed module files -->
<!-- ==================================================================== -->
-<xsl:template match="category/modulefilelist">
+<xsl:template match="modulefilelist">
<!-- create a module name translation list for sorting -->
<xsl:variable name="translist">
<xsl:text>-</xsl:text>
<!-- and now all sitemap-listed files -->
<xsl:for-each select="category">
<xsl:apply-templates select="page[@href]" />
- <xsl:apply-templates select="modulefilelist/modulefile"/>
+ <xsl:if test="@id = 'modules'">
+ <xsl:apply-templates select="document($allmodules)/modulefilelist
+ /modulefile" />
+ </xsl:if>
</xsl:for-each>&lf;
</xsl:template>
<!-- /sitemap -->
<!-- ==================================================================== -->
<!-- list module files -->
<!-- ==================================================================== -->
-<xsl:template match="category/modulefilelist/modulefile">
+<xsl:template match="modulefilelist/modulefile">
<xsl:text>mod\</xsl:text>
<xsl:value-of select="substring-before(normalize-space(.), '.xml')" />
<xsl:text>.html</xsl:text>&lf;