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] | [Elist Home]

Subject: RE: DOCBOOK-APPS: formal.procedures and insert.xref.page.number andfont size in xsls

Looks like you have to adjust the params region.before.extent and
region.after.exten along with the font size.

Using the following settings, the errors go away and the page number's
come back:
<xsl:param name="body.font.master">11</xsl:param>
<xsl:param name="region.after.extent" select="'14pt'"/>
<xsl:param name="region.before.extent" select="'14pt'"/>

Here's Nikolai Grigoriev's explanation in reply to a question and sample
file I sent him:

> I get the warnings below and the page numbers no longer
> appear on the bottom of the page.

XEP works as expected. Let's see:

- extents of both region-before and region-after in your document are 12
- the line height is not defined, therefore a default of (1.2 *
font-size) is
  (as prescribed by the spec);
- therefore, the maximum font size to fit a line of text (with half
   it) into the avaliable space is: 12 pt / 1.2 = 10 pt. On bigger font
there is
   no room to fit even a single line

To repair, you should either increase extents of side regions to a value
than the computed value of line-height, or set line-height to a smaller

<fo:block font-size="10pt" line-height="1">....

or by using a CSS shorthand:

<fo:block font="10pt/1 Futura">....

By the way: in your code, I see specifications like font-size="10"
any measurement unit). This is unreliable: we give no guarantee of
treating of unitless lengths. You should better avoid it.

Best regards,
Nikolai Grigoriev

> -----Original Message-----
> From: Bob Stayton [mailto:bobs@caldera.com]


> > 3. body.font.master
> > 
> > When I set: <xsl:param 
> name=3D"body.font.master">11</xsl:param>, and =
> > run
> > the .fo through xep, I get a bunch of errors like the ones 
> pasted bel=
> > ow.
> >
> > warning: static content overflow (xsl-region-before)
> >  136warning: static content overflow (xsl-region-after)
> > warning: static content overflow (xsl-region-before)
> >  137warning: static content overflow (xsl-region-after)
> >
> > Is there something else I need to set to let me go with a 
> bigger font=
> > ?
> I'm able to generate a .fo file with this set to 11
> without error.  Is the error message coming from
> the FO processor?  Which one are you using?

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

Powered by eList eXpress LLC