Author: ferdinand
Date: Fri Jan 25 13:27:21 2008
New Revision: 615349
URL: http://svn.apache.org/viewvc?rev=615349&view=rev
Log:
fop94: fix problems with legal overlapping copyright info in footer. New code
pushes copyright info down if there is a legal notice so that copyright info
remains on same line as page number.
Modified:
forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/footerinfo.xsl
Modified:
forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/footerinfo.xsl
URL:
http://svn.apache.org/viewvc/forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/footerinfo.xsl?rev=615349&r1=615348&r2=615349&view=diff
==============================================================================
---
forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/footerinfo.xsl
(original)
+++
forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/footerinfo.xsl
Fri Jan 25 13:27:21 2008
@@ -44,8 +44,18 @@
</xsl:variable>
<xsl:variable name="url" select="$pdfcredit/url"/>
<fo:block-container font-style="italic" absolute-position="absolute"
- left="0pt" top="6pt" bottom="150pt"
+ left="0pt" bottom="150pt"
font-size="10pt">
+ <!-- move copyright down if there is a legal notice
+ (thus keeping it on same line as line number) -->
+ <xsl:attribute
+ name="top">
+ <xsl:choose>
+ <xsl:when
+ test="/site/document/footer/legal">22</xsl:when>
+ <xsl:otherwise>6</xsl:otherwise>
+ </xsl:choose>
+ </xsl:attribute>
<xsl:if test="not($url)">
<fo:block text-align="center" color="lightgrey">
<xsl:value-of select="$text"/>