This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] [xsl stylesheets] reducing font size in formalparas?
- From: Charles Plessy <charles at gizmotronics dot dyndns dot org>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 24 Nov 2003 23:55:56 +0100
- Subject: Re: [docbook-apps] [xsl stylesheets] reducing font size in formalparas?
- References: <20031124202748.GB694@gizmotronics.dyndns.org> <20031124130158.H22425@sco.com>
- Reply-to: c dot plessy at mangoosta dot net
> > <xsl:param name="toto">
> > <xsl:value-of select="$body.font.master * 0.8"/>
> > <xsl:text>pt</xsl:text>
> > </xsl:param>
> >
> > <!-- toto is the french foo -->
> >
> > <xsl:template match="formalpara/para">
> > <fo:block font-family="sans-serif" font-size="$toto">
> > <xsl:apply-templates/>
> > </fo:block>
> > </xsl:template>
> >
> > <!-- changes the font family but not its size :(( -->
>
> If you peek in your FO output, you will see that you are
> getting the literal fontsize="$toto". That is because you
> need to use the fontsize="{$toto}" syntax, which is called
> an "attribute value template", to evaluate a variable
> inside a literal result element.
Thank you very much. It effectively solved my FO problem. However, the
size of the caption text didn't change in the pdf (I'm using fop).
--
Charles
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.