Commit f90a5c2f authored by Andre Malo's avatar Andre Malo
Browse files

prepare removing the references to allmodules.xml from sitemap

parent 7d177fb5
Loading
Loading
Loading
Loading
+35 −0
Changes for docs/manual/style/xsl/language.xsl: 35 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -103,6 +103,9 @@
<xsl:when test="$type = 'desc'">
    <xsl:apply-templates select="/language-list" mode="desc" />
</xsl:when>
<xsl:when test="$type = 'modlists'">
    <xsl:apply-templates select="/language-list" mode="modlists" />
</xsl:when>
</xsl:choose>
</xsl:template>

@@ -273,6 +276,28 @@
</xsl:template>


<!-- ==================================================================== -->
<!-- <language-list>                                                      -->
<!-- generate list of modulelists                                         -->
<!-- ==================================================================== -->
<xsl:template match="/language-list" mode="modlists">
<items>
    &lf;
    <xsl:for-each select="lang">
    <xsl:sort select="." />

        <xsl:variable name="file" select="document(concat(
                                          '../lang/', ., '.xml'))
                                          /language" />
        <item lang="{.}">
            <xsl:text>../../../mod/allmodules</xsl:text>
            <xsl:value-of select="$file/source-ext" />
        </item>
        &lf;
    </xsl:for-each>
</items>
</xsl:template>

<!-- ==================================================================== -->
<!-- <language-list>                                                      -->
<!-- generate project description                                         -->
@@ -418,6 +443,16 @@ Some targets have additional requirements:
            <xsl:value-of select="@id" />
        </xsl:element>
        &lf;
        <xsl:element name="xsl:variable">
            <xsl:attribute name="name">allmodules</xsl:attribute>
            <xsl:attribute name="select">
                <xsl:text>document('</xsl:text>
                <xsl:if test="$type != 'manual'">../</xsl:if>
                <xsl:text>xsl/util/allmodules.xml')</xsl:text>
                <xsl:text>/items/item[@lang=$doclang]</xsl:text>
            </xsl:attribute>
        </xsl:element>
        &lf;
    </xsl:if>
    &lf;

+5 −2
Changes for docs/manual/style/xsl/sitemap.xsl: 5 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -160,7 +160,10 @@
    </ul>
      
    <!-- optional ... -->
    <xsl:apply-templates select="modulefilelist" />&lf;
    <xsl:if test="@id = 'modules'">
        <xsl:apply-templates select="document($allmodules)/modulefilelist" />
    </xsl:if>
    &lf;
</div> <!-- /.section -->
</xsl:template>
<!-- /category -->
@@ -170,7 +173,7 @@
<!-- category/modulefilelist                                              -->
<!-- insert module list into sitemap                                      -->
<!-- ==================================================================== -->
<xsl:template match="sitemap/category/modulefilelist">
<xsl:template match="modulefilelist">
<xsl:variable name="translist">
    <xsl:text>-</xsl:text>
    <xsl:for-each select="modulefile">