diff options
author | Ulrich Müller <ulm@gentoo.org> | 2023-10-28 22:49:00 +0200 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2023-10-30 17:18:22 +0100 |
commit | f2344f0b4e71e4b8c4aded22f47716bdeec35d0c (patch) | |
tree | 061d016f614f68e64ff0d3d0f81c3be5cc2b46d2 /devbook.xsl | |
parent | devbook.xsl: Rewrite the uri template (diff) | |
download | devmanual-f2344f0b4e71e4b8c4aded22f47716bdeec35d0c.tar.gz devmanual-f2344f0b4e71e4b8c4aded22f47716bdeec35d0c.tar.bz2 devmanual-f2344f0b4e71e4b8c4aded22f47716bdeec35d0c.zip |
devbook.xsl: Drop unused class parameter from uri template
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'devbook.xsl')
-rw-r--r-- | devbook.xsl | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/devbook.xsl b/devbook.xsl index 1d101c1..8e4f3ec 100644 --- a/devbook.xsl +++ b/devbook.xsl @@ -311,7 +311,6 @@ </xsl:template> <xsl:template match="uri"> - <xsl:param name="class" /> <xsl:choose> <!-- Intra-document reference --> <xsl:when test="starts-with(@link, '::')"> @@ -343,7 +342,7 @@ </xsl:variable> <xsl:choose> <xsl:when test="contains(@link, '##')"> - <a class="{$class}" href="{concat($path_html, '#', substring-after(@link, '##'))}"> + <a href="{concat($path_html, '#', substring-after(@link, '##'))}"> <xsl:value-of select="."/> </a> </xsl:when> @@ -353,7 +352,7 @@ <xsl:with-param name="data" select="substring-after(@link, '#')"/> </xsl:call-template> </xsl:variable> - <a class="{$class}" href="{concat($path_html, '#', $anchor)}"> + <a href="{concat($path_html, '#', $anchor)}"> <xsl:choose> <xsl:when test=". != ''"> <xsl:value-of select="."/> @@ -365,7 +364,7 @@ </a> </xsl:when> <xsl:otherwise> - <a class="{$class}" href="{$path_html}"> + <a href="{$path_html}"> <xsl:choose> <xsl:when test=". != ''"> <xsl:value-of select="."/> @@ -386,15 +385,15 @@ </xsl:when> <!-- External reference, URI in link attribute --> <xsl:when test="@link"> - <a class="{$class}" href="{@link}"><xsl:value-of select="."/></a> + <a href="{@link}"><xsl:value-of select="."/></a> </xsl:when> <!-- External reference, URI in body text --> <xsl:when test="contains(., '://')"> - <a class="{$class}" href="{.}"><xsl:value-of select="."/></a> + <a href="{.}"><xsl:value-of select="."/></a> </xsl:when> <xsl:otherwise> <xsl:message>Error: No link target (<xsl:value-of select="."/>)</xsl:message> - <a class="{$class}"><xsl:value-of select="."/></a> + <a><xsl:value-of select="."/></a> </xsl:otherwise> </xsl:choose> </xsl:template> |