commit:     f2344f0b4e71e4b8c4aded22f47716bdeec35d0c
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 28 20:49:00 2023 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Mon Oct 30 16:18:22 2023 +0000
URL:        https://gitweb.gentoo.org/proj/devmanual.git/commit/?id=f2344f0b

devbook.xsl: Drop unused class parameter from uri template

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 devbook.xsl | 13 ++++++-------
 1 file 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>

Reply via email to