xsl/common: simplify <link> in navigation.xml
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Astro 2024-03-08 00:32:45 +01:00
parent 8e7c7159f6
commit d4b1e972bd
1 changed files with 1 additions and 16 deletions

View File

@ -529,23 +529,8 @@
</xsl:template>
<xsl:template mode="navitem" match="link">
<xsl:variable name="href">
<xsl:call-template name="make-href">
<xsl:with-param name="href" select="@href"/>
</xsl:call-template>
</xsl:variable>
<li>
<a href="{$href}">
<xsl:if test="@class">
<xsl:attribute name="class"><xsl:value-of select="@class"/></xsl:attribute>
</xsl:if>
<xsl:if test="@rel">
<xsl:attribute name="rel"><xsl:value-of select="@rel"/></xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</a>
<xsl:apply-templates select="."/>
</li>
</xsl:template>