]> granicus.if.org Git - apache/commitdiff
The arrow indicator for a glossary link was cute, but I found it way too
authorJoshua Slive <slive@apache.org>
Wed, 21 Sep 2005 14:31:19 +0000 (14:31 +0000)
committerJoshua Slive <slive@apache.org>
Wed, 21 Sep 2005 14:31:19 +0000 (14:31 +0000)
disturbing to the flow of text.  Here I replace it with a dashed-unline.
Also, allow the omission of the ref attribute where the glossary term is
exactly equal to the link contents.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@290712 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/css/manual.css
docs/manual/style/xsl/common.xsl

index cf060aecbf4ce512897c03faafd79df3295adc8d..afb0beb22b8cf2b2a2809d0951d99abfbda4840e 100644 (file)
@@ -173,6 +173,15 @@ div#quickview code.directive a:active {
     color: #287f00;
 }
 
+/* glossary [links] */
+/* ====================== */
+.glossarylink {
+    cursor: help;
+    border-bottom: 1px dashed #0073c7;
+    text-decoration: none;
+}
+
+
 /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  * Headings
  * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
index 55d4bafa2c8d3a09911d895e36418e45a9642724..d6d8e584d63282e15055d2b0b97c6c6879af5710 100644 (file)
 <!-- link to a glossary anchor                                            -->
 <!-- ==================================================================== -->
 <xsl:template match="glossary">
-<span>
-    <xsl:attribute name="title">
+  <xsl:variable name="glosslink">
+    <xsl:choose>
+    <xsl:when test="@ref">
+      <xsl:value-of select="@ref"/>
+    </xsl:when>
+    <xsl:otherwise>
+      <xsl:value-of select="translate(., $uppercase, $lowercase)"/>
+    </xsl:otherwise>
+    </xsl:choose>
+  </xsl:variable>
+
+  <a href="{$path}/glossary.html#{$glosslink}" class="glossarylink">
+     <xsl:attribute name="title">
         <xsl:value-of select="$message[@id='glossarylink']" />
-    </xsl:attribute>
-    <xsl:text>&#x2192;</xsl:text>
-</span>&nbsp;
-<a href="{$path}/glossary.html#{@ref}">
-    <xsl:apply-templates />
-</a>
+     </xsl:attribute>
+     <xsl:apply-templates />
+  </a>
 </xsl:template>
 <!-- /glossary -->