directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r1212643 - /directory/documentation/ldap-api-manuals/trunk/src/docbkx-stylesheet/fo/docbook.xsl
Date Fri, 09 Dec 2011 21:21:41 GMT
Author: felixk
Date: Fri Dec  9 21:21:41 2011
New Revision: 1212643

URL: http://svn.apache.org/viewvc?rev=1212643&view=rev
Log:
Fix "when generating the pdf, we have an issue with the links (a link is seen twice, instead
of once)". Hélas we can now not see anymore where the links are. They need to be colorized
somehow ... I don't have an idea yet, but probably either a param exist to override or the
matcher for this needs to be overridden in the custom fo/docbook.xsl

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

Modified: directory/documentation/ldap-api-manuals/trunk/src/docbkx-stylesheet/fo/docbook.xsl
URL: http://svn.apache.org/viewvc/directory/documentation/ldap-api-manuals/trunk/src/docbkx-stylesheet/fo/docbook.xsl?rev=1212643&r1=1212642&r2=1212643&view=diff
==============================================================================
--- directory/documentation/ldap-api-manuals/trunk/src/docbkx-stylesheet/fo/docbook.xsl (original)
+++ directory/documentation/ldap-api-manuals/trunk/src/docbkx-stylesheet/fo/docbook.xsl Fri
Dec  9 21:21:41 2011
@@ -27,9 +27,13 @@ under the License.
   <xsl:import
     href="urn:docbkx:stylesheet" />
 
-  <!-- Important links: - http://www.sagehill.net/docbookxsl/ - http://docbkx-tools.sourceforge.net/
-->
+  <!--
+       Important links: - http://www.sagehill.net/docbookxsl/
+                        - http://docbkx-tools.sourceforge.net/
+                        - http://docbook.sourceforge.net/release/xsl/1.76.1/doc/fo/
+  -->
 
-  <!-- set bellow all your custom xsl configuration -->
+  <!-- set below all your custom xsl configuration -->
 
   <xsl:param
     name="section.autolabel"
@@ -58,6 +62,21 @@ under the License.
       <xsl:attribute name="background-color">#F0F0F0</xsl:attribute>
   </xsl:attribute-set>
 
+  <!-- If non-zero, the URL of each ulink will appear after the text of the link. If the
text of the link and the URL are identical, the URL is suppressed. -->
+  <xsl:param name="ulink.show" select="0"/>
+
+  <!-- If non-zero, and if ulink.show also is non-zero, the URL of each ulink will appear
as a footnote. -->
+  <xsl:param name="ulink.footnotes" select="0"/>
+
+  <!-- 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="."/>
@@ -350,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