This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Font size
- To: docbook-apps at lists dot oasis-open dot org
- Subject: DOCBOOK-APPS: Font size
- From: Vladimir G Ivanovic <vladimir at acm dot org>
- Date: Wed, 22 Aug 2001 00:40:22 -0700
- List-Id: <docbook-apps.lists.oasis-open.org>
When I processed my DocBook 3.1 SGML files with DSSSL and OpenJade, I got
10pt PDF output. Now, when I process the same files (modulo minor
changes) as DocBook 4.1.2 XML files with the DocBook XSL stylesheets to
FO, I get 12pt output.
How do I customize DocBook/XSL/whatever to get 10pt output? I tried
creating a local file, "progguide.xsl" with contents:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:import href="file:///usr/share/xsl/docbook/docbook.xsl"/>
<fo:root font-family="Times Roman"
font-size="12pt"
text-align="justify">
<xsl:call-template name="setup.pagemasters"/>
<xsl:choose>
<xsl:when test="$rootid != ''">
<xsl:choose>
<xsl:when test="count(id($rootid)) = 0">
<xsl:message terminate="yes">
<xsl:text>ID '</xsl:text>
<xsl:value-of select="$rootid"/>
<xsl:text>' not found in document.</xsl:text>
</xsl:message>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="id($rootid)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</fo:root>
</xsl:stylesheet>
but, BZZZT, nice try, but not even close, which is not surprising since
I haven't a clue.
$ saxon -w0 -o progguide.fo progguide.xml progguide.xsl
Error on line 7 column 24 of file:/home/vladimir/aspectj/doc/progGuideDB/progguide.xsl:
Error reported by XML parser: undeclared name prefix in: fo:root
Error on line 29 column 6 of file:/home/vladimir/aspectj/doc/progGuideDB/progguide.xsl:
Error reported by XML parser: undeclared name prefix in: fo:root
Transformation failed: javax.xml.transform.TransformerException: XML Parsing failed
I checked the docbook and docbook-apps archives, but I didn't find
anything. There was a message from Michael Westbay about tweaking
docbook.xsl (v1.29) to set "fo:root's font-family" to
{$body.font.family}, but nothing about font-size.
So, how *does* one change the default font-size for a DocBook-FO document?
Thanks.
--- Vladimir
Vladimir G. Ivanovic http://www.leonora.org/~vladimir
2770 Cowper St. vladimir@acm.org
Palo Alto, CA 94306-2447 +1 650 678 8014
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>