Next in thread →
Next in month →
Re: [docbook-apps]is there an pdf equiv. to html.stylesheet?
You are in luck. You can put the
background-color attribute in the toc.margin.properties attribute-set.
Although it says "margins", it is applied to the outer fo:block of the TOC, so
it should shade the whole thing. Let me know if it doesn't
work.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
----- Original Message -----
From:
Sheldon Plankton
To: Bob Stayton ;
Sent: Friday, January 14, 2005 3:52
PM
Subject: Re: [docbook-apps]is there an
pdf equiv. to html.stylesheet?
Thanks Bob!
I put this in my my_pdf.xsl file ...
<xsl:param name="shade.verbatim" select="1" />
<xsl:attribute-set name="shade.verbatim.style">
<xsl:attribute
name="background-color">#FFFFCCCC</xsl:attribute>
</xsl:attribute-set>
... and now the backgound for my text in my <screen> tags is a nice
yellow color.
But I can't seem to figure out how to do this for the "Table Of
Contents". Can you help?
Thanks!
Sheldon
Bob Stayton <>
wrote:
Hi Sheldon,
The fo version of the DocBook XSL
stylesheets does not make use of CSS for formatting. The
html.stylesheet parameter is only used in HTML output.
Getting customized output for PDF
requires customizing the XSL. You can do a lot with parameters and
attribute sets, and only resort to customizing XSL templates if you have
to. My online book provides the details:
http://www.sagehill.net/docbookxsl/index.html
If you want to stick to CSS, you might
consider Prince 4.0, which uses CSS to create printed output from XML.
I've not used it, but it comes with a stylesheet for DocBook.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
----- Original Message -----
From:
Sheldon Plankton
To:
Sent: Tuesday, January 11, 2005 3:52
PM
Subject: [docbook-apps]is there an
pdf equiv. to html.stylesheet?
Hi,
When I generate my html from my docbook source I specifiy my xsl file
( my_html.xsl) that has a few common customization for making
<screen> tag and <title> tags look cool.
Now I am generating .fo ( and subsequently .pdf) files with java and
com.icl.saxon.StyleSheet and I have been specifying my xsl file (
my_pdf.xsl) ... both files have a line that reads:
<xsl:param name="html.stylesheet" select="'my.css'" />
My html gets all my cool customization but my pdf is still just plain
looking :/
What do I need to do to get .css like features into my .fo ( and pdf)
files?
I hope that make sense, Thanks
Sheldon
Do you Yahoo!?
Yahoo! Mail - Easier than ever with enhanced search. Learn
more.
Do you Yahoo!?
All your favorites on one personal page – Try My Yahoo!
Next in thread →
Next in month →