directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r1212577 - /directory/documentation/apacheds-manuals/trunk/src/docbkx-stylesheet/fo/docbook.xsl
Date Fri, 09 Dec 2011 19:00:58 GMT
Author: felixk
Date: Fri Dec  9 19:00:57 2011
New Revision: 1212577

URL: http://svn.apache.org/viewvc?rev=1212577&view=rev
Log:
Colorize links to make them visible (DIRSERVER-1678)

Modified:
    directory/documentation/apacheds-manuals/trunk/src/docbkx-stylesheet/fo/docbook.xsl

Modified: directory/documentation/apacheds-manuals/trunk/src/docbkx-stylesheet/fo/docbook.xsl
URL: http://svn.apache.org/viewvc/directory/documentation/apacheds-manuals/trunk/src/docbkx-stylesheet/fo/docbook.xsl?rev=1212577&r1=1212576&r2=1212577&view=diff
==============================================================================
--- directory/documentation/apacheds-manuals/trunk/src/docbkx-stylesheet/fo/docbook.xsl (original)
+++ directory/documentation/apacheds-manuals/trunk/src/docbkx-stylesheet/fo/docbook.xsl Fri
Dec  9 19:00:57 2011
@@ -71,6 +71,12 @@ under the License.
   <!-- If non-zero the generated output for the email element will be a clickable mailto:
link that brings up the default mail client on the system. -->
   <xsl:param name="email.mailto.enabled" select="1"/>
 
+  <!-- Set properties to use for xrefs -->
+  <xsl:attribute-set name="xref.properties">
+    <xsl:attribute name="color">blue</xsl:attribute>
+    <xsl:attribute name="text-decoration">underline</xsl:attribute>
+  </xsl:attribute-set>
+
   <!-- Add background for admonitions -->
   <xsl:template name="graphical.admonition">
     <xsl:param name="node" select="."/>
@@ -363,17 +369,15 @@ under the License.
           <fo:page-number />
         </fo:block>
         <fo:block>
-          <fo:basic-link external-destination="url('http://www.apache.org/')"
-               text-decoration="underline"
-               color="blue">The Apache Software Foundation</fo:basic-link>
+          <fo:basic-link xsl:use-attribute-sets="xref.properties"
+                         external-destination="url('http://www.apache.org/')">The Apache
Software Foundation</fo:basic-link>
         </fo:block>
       </xsl:when>
       <xsl:when test="$position = 'right'">
         <fo:block />
         <fo:block>
-          <fo:basic-link external-destination="url('http://directory.apache.org/privacy-policy.html')"
-               text-decoration="underline"
-               color="blue">Privacy Policy</fo:basic-link>
+          <fo:basic-link xsl:use-attribute-sets="xref.properties"
+                         external-destination="url('http://directory.apache.org/privacy-policy.html')">Privacy
Policy</fo:basic-link>
         </fo:block>
       </xsl:when>
     </xsl:choose>



Mime
View raw message