This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Stylesheet languages and giving you fine controloverwhere things go
- To: docbook-apps at lists dot oasis-open dot org, sharpe at ns dot aus dot com
- Subject: Re: DOCBOOK-APPS: Stylesheet languages and giving you fine controloverwhere things go
- From: David Cramer <david_cramer at broadjump dot com>
- Date: Tue, 03 Jul 2001 11:31:01 -0500
Richard Sharpe writes:
> For example, I might want to place the word Preliminary diagonally
> across the back of every page in outline form, with the primary text
> appearing in front of it.
Using Norm's stylesheets, in param.xsl/your customization layer, do:
<xsl:attribute-set name="body.attrs">
<xsl:attribute name="style">background-image:
url(http://pathto/images/draft.gif);
background-attachment: fixed; margin-left: 3.5em;
</xsl:attribute>
</xsl:attribute-set>
I don't know of a similar place in param.xsl for fo. Actually I've been
meaning to post here asking if there is one, but the result you want is
something like:
<fo:simple-page-master margin-right="1in" margin-left="1in" margin-
bottom="1in" margin-top="1in" page-height="11in" page-width="8.5in"
master-
name="first2">
<fo:region-body margin-top="24pt" margin-bottom="24pt"
column-count="1"
background-image="http://pathto/images/draft.gif"/>
<fo:region-before extent="12pt"
region-name="xsl-region-before-first"/>
<fo:region-after extent="12pt"
region-name="xsl-region-after-first"/>
</fo:simple-page-master>
I believe you'd override templates in fo/pagesetup.xsl, unless this is
also parameterized and I haven't figured it out yet :)
David
--
512.908.1645