]> granicus.if.org Git - docbook-dsssl/commitdiff
Added a class attribute to anchors for olink cross references.
authorBob Stayton <bobs@sagehill.net>
Sun, 19 Sep 2004 00:05:19 +0000 (00:05 +0000)
committerBob Stayton <bobs@sagehill.net>
Sun, 19 Sep 2004 00:05:19 +0000 (00:05 +0000)
xsl/html/xref.xsl

index b5feeb7c77499938cb049f5c54b5793da161123b..3c4e5539d3f671ba7baf72963fe6d3ce45a299b9 100644 (file)
 
       <xsl:choose>
         <xsl:when test="$href != ''">
-          <a href="{$href}">
+          <a href="{$href}" class="olink">
             <xsl:copy-of select="$hottext"/>
           </a>
           <xsl:copy-of select="$olink.page.citation"/>
           <xsl:copy-of select="$olink.docname.citation"/>
         </xsl:when>
         <xsl:otherwise>
-          <xsl:copy-of select="$hottext"/>
+          <span class="olink"><xsl:copy-of select="$hottext"/></span>
           <xsl:copy-of select="$olink.page.citation"/>
           <xsl:copy-of select="$olink.docname.citation"/>
         </xsl:otherwise>
     
       <xsl:choose>
         <xsl:when test="$href != ''">
-          <a href="{$href}">
+          <a href="{$href}" class="olink">
             <xsl:call-template name="olink.hottext"/>
           </a>
         </xsl:when>