[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [docbook-apps] copyright notice on last page
Oops--it's not that easy for books. Sorry to tease you. Try adding this
to <xsl:template match="book"> in division.xsl. Find
<xsl:apply-templates select="$content"/> and add the new stuff
immediately after that (add or remove apply-templates to pull in stuff
from bookinfo as needed):
<xsl:apply-templates select="$content"/>
<!-- new stuff -->
<fo:page-sequence id="{$id}"
hyphenate="{$hyphenate}"
master-reference="{$titlepage-master-reference}">
<xsl:attribute name="language">
<xsl:call-template name="l10n.language"/>
</xsl:attribute>
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates
mode="book.titlepage.verso.auto.mode" select="bookinfo/productname"/>
<xsl:apply-templates
mode="book.titlepage.verso.auto.mode" select="bookinfo/pubdate"/>
<xsl:apply-templates
mode="book.titlepage.verso.auto.mode" select="bookinfo/copyright"/>
<xsl:apply-templates
mode="book.titlepage.verso.auto.mode" select="bookinfo/legalnotice"/>
<xsl:apply-templates
mode="book.titlepage.verso.auto.mode" select="bookinfo/biblioid"/>
</fo:flow>
</fo:page-sequence>
<!-- end new stuff -->
</xsl:template>
That should give you a new page at the end with the copyright info.
David
-----Original Message-----
From: David Cramer
Sent: Thursday, May 15, 2003 2:42 PM
To: Martin Stemplinger; docbook-apps@lists.oasis-open.org
Subject: RE: [docbook-apps] copyright notice on last page
I think that'd be a good feature request. I had to do it for one of our
types of documents (technical white paper). In our case the documents
were <article>s, so I hacked <xsl:template match="article"> in
component.xsl and added a <fo:block> immediately before at the end of
that template:
<!-- new block here -->
</fo:flow>
</fo:page-sequence>
</xsl:template>
I then pulled the content I wanted from the <articleinfo> into that
block and formatted it as desired.
David
-----Original Message-----
From: Martin Stemplinger [mailto:mstemplinger@gmx.de]
Sent: Thursday, May 15, 2003 2:26 PM
To: docbook-apps@lists.oasis-open.org
Subject: [docbook-apps] copyright notice on last page
I need to adhere to a document standard that demands a copyright
notice on the _last_ page of each document.
Any ideas who to do this? I use fop to generate pdf output.
My first thought was to misuse <colophon>, but all the information is
also included in <bookinfo> and I don't want to havee the information
twice in the document.
I'm no xsl:fo expert. Thus I have a vague idea that I need a special
pagemaster and corresponding stylesheet templates. Is that the way to
go? If so, I'd appreciate any pointers which templates I need to
customize and how.
Cheers
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]