BTW, I think the thought was to have even-page and odd-page headers.
What exactly should be on the header? Is the the chapter title and
copyright, or some other layout?
I guess Jeff knows what the layout should be... :-)
thanks,
scott
scott hutinger wrote:
I noticed that booktitle is somehow or another set as "Copyright"
I haven't been able to find out where this is set yet. I did add some
xslt to dita2fo-shell.xsl so it shows
Copyright©1997, 2005: Apache Software Foundation
Which isn't completely correct, but it took a while to find where
Copyright was (or what). Also, the following doesn't follow the way
(c) was supposed to be implemented. But this could be an intermediate
fix. Or modified the way it should be displayed till it was fixed the
way it was intended to work.
scott
------------------------------------------------------------------------
Index: lib/dita2fo-shell.xsl
===================================================================
--- lib/dita2fo-shell.xsl (revision 384602)
+++ lib/dita2fo-shell.xsl (working copy)
@@ -87,6 +87,12 @@
<!--xsl:call-template name="back-covers"/-->
</fo:root>
</xsl:template>
+ <!-- create Derby Copyright for static area -->
+ <xsl:template name="derby-copyright">
+ <xsl:text>©r;</xsl:text>
+ <xsl:value-of select="//*[contains(@class,' topic/copyright ')]/copyryear/@year"/>:
+ <xsl:value-of select="//*[contains(@class,' topic/copyright ')]/*[contains(@class,' topic/copyrholder ')]"/><xsl:text> </xsl:text>
+ </xsl:template>
<!-- create FOP outline elements for PDF bookmarks -->
<xsl:template match="*" mode="outline">
<xsl:if test="contains(@class,' topic/topic ')">
@@ -160,6 +166,7 @@
<!--Jeff is adding this section to replace what was originally there below -->
<fo:flow flow-name="xsl-region-body" >
+ <xsl:call-template name="derby-copyright"/>
<!-- Custom cover art/text goes here -->
<xsl:call-template name="place-cover-art"/>
<!-- End of custom art section -->
@@ -279,6 +286,7 @@
</xsl:variable>
<fo:block font-size="8pt" line-height="8pt">
<xsl:value-of select="$booktitle"/>
+ <xsl:call-template name="derby-copyright"></xsl:call-template>
</fo:block>
</fo:static-content>
<!-- footer -->
@@ -338,6 +346,7 @@
</xsl:variable>
<fo:block font-size="8pt" line-height="8pt">
<xsl:value-of select="$booktitle"/>
+ <xsl:call-template name="derby-copyright"></xsl:call-template>
</fo:block>
</fo:static-content>
<!-- footer static stuff -->