directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r985986 - /directory/apacheds/trunk/user-guides/src/docbkx-stylesheet/fo/docbook.xsl
Date Mon, 16 Aug 2010 15:18:54 GMT
Author: felixk
Date: Mon Aug 16 15:18:52 2010
New Revision: 985986

URL: http://svn.apache.org/viewvc?rev=985986&view=rev
Log:
DIRSERVER-1536 Create footer for PDFs

Modified:
    directory/apacheds/trunk/user-guides/src/docbkx-stylesheet/fo/docbook.xsl

Modified: directory/apacheds/trunk/user-guides/src/docbkx-stylesheet/fo/docbook.xsl
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/user-guides/src/docbkx-stylesheet/fo/docbook.xsl?rev=985986&r1=985985&r2=985986&view=diff
==============================================================================
--- directory/apacheds/trunk/user-guides/src/docbkx-stylesheet/fo/docbook.xsl (original)
+++ directory/apacheds/trunk/user-guides/src/docbkx-stylesheet/fo/docbook.xsl Mon Aug 16 15:18:52
2010
@@ -27,6 +27,8 @@ under the License.
   <xsl:import
     href="urn:docbkx:stylesheet" />
 
+  <!-- Important links: - http://www.sagehill.net/docbookxsl/ - http://docbkx-tools.sourceforge.net/
-->
+
   <!-- set bellow all your custom xsl configuration -->
 
   <xsl:param
@@ -39,7 +41,36 @@ under the License.
     name="section.label.includes.component.label"
     select="2" />
 
-  <!-- Important links: - http://www.sagehill.net/docbookxsl/ - http://docbkx-tools.sourceforge.net/
-->
+  <xsl:template name="footer.content">
+    <xsl:param name="pageclass" select="''"/>
+    <xsl:param name="sequence" select="''"/>
+    <xsl:param name="position" select="''"/>
+    <xsl:param name="gentext-key" select="''"/>
+    <xsl:choose>
+      <xsl:when test="$position = 'left'">
+        <fo:block />
+        <fo:block>© 2003-2010</fo:block>
+      </xsl:when>
+      <xsl:when test="$position = 'center'">
+        <fo:block>
+          <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: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:block>
+      </xsl:when>
+    </xsl:choose>
+  </xsl:template>  
 
   <xsl:template match="processing-instruction('linebreak')">
     <fo:block/>



Mime
View raw message