This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] a couple quick questions re: docbook -> FO -> PDF
- From: "Christopher R. Maden" <crism at maden dot org>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 20 May 2003 10:35:02 -0700
- Subject: Re: [docbook-apps] a couple quick questions re: docbook -> FO -> PDF
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
At 04:55 20/5/03, Robert P. J. Day wrote:
>1) how to automatically push a new book/chapter to the next odd
> page.
>
> there's lots of stuff regarding "auto-odd" in fo/pagesetup.xsl
> but i don't see how to do this right offhand. (i've selected
> double-sided output.)
There are two controls for this in FO: initial-page-number="auto-odd"
starts the page-sequence on an odd page, and force-page-count="end-on-even"
forces this page-sequence to end on an even page. I recommend using both.
How? Good question. The DocBook XSL stylesheets aren't really
parameterized for this; there probably should be a
start.components.on.recto parameter or something. I did it with a horrible
hack, taking advantage of the fact that in XSLT you can always create an
attribute in an element if there's been no content yet:
<xsl:template match="*" mode="running.head.mode">
<xsl:param name="master-reference" select="'unknown'"/>
<xsl:param name="gentext-key" select="name(.)"/>
<xsl:attribute name="force-page-count">
<xsl:text>end-on-even</xsl:text>
</xsl:attribute>
<!-- rest of running.head.mode template from DocBook XSL -->
</xsl:template>
HTH,
Chris
- --
Christopher R. Maden, Principal Consultant, crism consulting
XML-SGML-HTML-DTDs-schemas-XSL-DSSSL-conversion-training-ebooks-B2B
<URL: http://crism.maden.org/consulting/ >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4 5DFC AC52 F825 AFEC 58DA
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.8
iQA/AwUBPspnRaxS+CWv7FjaEQLATACggo6OsIFqAR9/u4m4eIdHYL9ztjkAn2qm
aKLO7kjCdy5vy0hgo32eLU0m
=IBqL
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org