Next in thread →
Next in month →
Re: [docbook-apps] How do I mirror Copyright text in the footer?
Actually, the template you want to
customize is named 'footer.content', not 'footer.table'. Was that a typo
in your message?
The footer.table template sets up the three
footer areas (inside, middle, and outside), and then calls the footer.content
template for each table cell. You specify the content of each cell in
footer.content with the xsl:choose statement.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
----- Original Message -----
From:
Supun Gunasena
To:
Sent: Tuesday, August 09, 2005 6:49
PM
Subject: [docbook-apps] How do I mirror
Copyright text in the footer?
Hi guys,
Could someone help me with some XSL
code?
I have a footer which has the following logo and text (which appears
at the bottom, left-hand side of odd
pages):
LOGO Copyright 2005 Orion
Ltd
Now, I want the mirror image of this exact same
footer, except on the even pages.
The following should appear on the bottom right-hand
side of the even pages:
Copyright
2005 Orion Ltd
LOGO
This is the code I have used in my XSL Stylesheet:
<!-- Footers!
-->
<xsl:template
name="footer.table">
<xsl:choose>
<xsl:when
test="$pageclass = 'titlepage' and
$sequence='first'">
<!-- no, book titlepages have no footers at all
-->
</xsl:when>
<xsl:when
test="$pageclass = 'titlepage' and $sequence =
'even'">
</xsl:when>
<xsl:when
test="$pageclass = 'lot' and $sequence =
'first'">
</xsl:when>
<xsl:when
test="$sequence = 'blank'">
<!-- nothing for blank pages
-->
</xsl:when>
<xsl:otherwise>
<fo:external-graphic height="-1.0pt" scaling="uniform"
space-before="5pt" src="url(file:///C%3A/Program%20Files/DocBook/images/orionlogosmall.png)"
width="5.63pt"/>
<fo:block
hyphenate="false" line-height="10.3pt"
space-before="0pt"
margin-left="58.0pt">
<fo:inline
font-family="Arial, sans-serif"
font-size="7.0pt">
Copyright
2005 Orion Systems International Limited
</fo:inline>
</fo:block>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>
Thanks and regards,
Supun Gunasena
Technical Writer
Orion
Systems International
Excellence
in Health Innovation
Skype:
skypeID Phone: +64 9 6380600 Fax: +64 9
6380699 Email:
2nd
Floor, Orion House, cnr Enfield & Mary St, Mt Eden, PO Box 8273,
Auckland, New Zealand. http://www.orionhealth.com
This
e-mail and any attachments are intended only for the person to whom it
is addressed and may contain privileged, proprietary, or other data
protected from disclosure under applicable law. If you are not the
addressee or the person responsible for delivering this to the addressee
you are hereby notified that reading, copying or distributing this
transmission is prohibited. If you have received this e-mail in error,
please telephone us immediately and remove all copies of it from your
system. Thank you for your co-operation.
Next in thread →
Next in month →