OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] [xsl stylesheets] reducing font size in formalparas?


On Mon, Nov 24, 2003 at 11:55:56PM +0100, Charles Plessy wrote:
> > > <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).

Really?  It worked on the formalpara I tried it on,
with fop 0.20.5.

How are you using the formalpara in your document?

BTW, don't set the 'body.font.size' parameter.  Only set
the 'body.font.master' parameter (without units), because
the body.font.size parameter is computed from it.

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]