]> granicus.if.org Git - docbook-dsssl/commitdiff
Add call to class.attribute to <a> output elements so they can
authorBob Stayton <bobs@sagehill.net>
Thu, 15 Feb 2007 08:02:00 +0000 (08:02 +0000)
committerBob Stayton <bobs@sagehill.net>
Thu, 15 Feb 2007 08:02:00 +0000 (08:02 +0000)
have a class value too.

xsl/html/inline.xsl
xsl/html/xref.xsl

index 7867fa3ad54556495d795baf6ff8848b1eaf75e3..a917165ac9a098d99a4b92d6449406e7d4993ab7 100644 (file)
@@ -82,6 +82,8 @@
 
               <xsl:otherwise>
                 <a>
+                  <xsl:apply-templates select="." mode="class.attribute"/>
+
                   <xsl:attribute name="href">
                     <xsl:call-template name="href.target">
                       <xsl:with-param name="object" select="$target"/>
           <!-- otherwise it's a URI -->
           <xsl:otherwise>
             <a>
+              <xsl:apply-templates select="." mode="class.attribute"/>
               <xsl:attribute name="href">
                 <xsl:value-of select="$xhref"/>
               </xsl:attribute>
         </xsl:call-template>
 
         <a>
+          <xsl:apply-templates select="." mode="class.attribute"/>
           <xsl:attribute name="href">
             <xsl:call-template name="href.target">
               <xsl:with-param name="object" select="$target"/>
   <xsl:choose>
     <xsl:when test="$citerefentry.link != '0'">
       <a>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:attribute name="href">
           <xsl:call-template name="generate.citerefentry.link"/>
         </xsl:attribute>
       <xsl:choose>
         <xsl:when test="$target">
           <a>
+            <xsl:apply-templates select="." mode="class.attribute"/>
             <xsl:if test="@id or @xml:id">
               <xsl:attribute name="name">
                 <xsl:value-of select="(@id|@xml:id)[1]"/>
             </xsl:call-template>
           </xsl:variable>
           <a href="{$chunkbase}#{$id}">
+            <xsl:apply-templates select="." mode="class.attribute"/>
             <xsl:call-template name="inline.italicseq">
               <xsl:with-param name="content" select="$content"/>
             </xsl:call-template>
         </xsl:when>
         <xsl:otherwise>
           <a>
+            <xsl:apply-templates select="." mode="class.attribute"/>
             <xsl:if test="@id or @xml:id">
               <xsl:attribute name="name">
                 <xsl:value-of select="(@id|@xml:id)[1]"/>
         <xsl:text>&lt;</xsl:text>
       </xsl:if>
       <a>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:attribute name="href">
           <xsl:text>mailto:</xsl:text>
           <xsl:value-of select="."/>
 
       <xsl:text>[</xsl:text>
       <a>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:attribute name="href">
           <xsl:call-template name="href.target">
             <xsl:with-param name="object" select="$target"/>
index 6ca4efd777e8b7400f8beb35ee7c678b15cd3f84..1aa2d6eba91476bddc09104d4553faa6063ce68b 100644 (file)
             <xsl:value-of select="@endterm"/>
           </xsl:message>
           <a href="{$href}">
+            <xsl:apply-templates select="." mode="class.attribute"/>
             <xsl:text>???</xsl:text>
           </a>
         </xsl:when>
         <xsl:otherwise>
           <a href="{$href}">
+            <xsl:apply-templates select="." mode="class.attribute"/>
             <xsl:apply-templates select="$etarget" mode="endterm"/>
           </a>
         </xsl:otherwise>
 
     <xsl:when test="$target/@xreflabel">
       <a>
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:attribute name="href">
           <xsl:call-template name="href.target">
             <xsl:with-param name="object" select="$target"/>
       </xsl:if>
 
       <a href="{$href}">
+        <xsl:apply-templates select="." mode="class.attribute"/>
         <xsl:if test="$target/title or $target/*/title">
           <xsl:attribute name="title">
             <xsl:apply-templates select="$target" mode="xref-title"/>
   <xsl:param name="url" select="@url"/>
   <xsl:variable name="link">
     <a>
+      <xsl:apply-templates select="." mode="class.attribute"/>
       <xsl:if test="@id or @xml:id">
         <xsl:attribute name="name">
           <xsl:value-of select="(@id|@xml:id)[1]"/>
 
       <xsl:choose>
         <xsl:when test="$href != ''">
-          <a href="{$href}" class="olink">
+          <a href="{$href}">
+            <xsl:apply-templates select="." mode="class.attribute"/>
             <xsl:copy-of select="$hottext"/>
           </a>
           <xsl:copy-of select="$olink.page.citation"/>
     
       <xsl:choose>
         <xsl:when test="$href != ''">
-          <a href="{$href}" class="olink">
+          <a href="{$href}">
+            <xsl:apply-templates select="." mode="class.attribute"/>
             <xsl:call-template name="olink.hottext"/>
           </a>
         </xsl:when>