This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] docbook-xsl V1.62.0: xsltproc produces bad mar gins in FO


On Fri, Sep 12, 2003 at 11:54:13AM +0200, Gisbert Amm wrote:
> > -----Original Message-----
> > From: Justus.Piater@ULg.ac.be [mailto:Justus.Piater@ULg.ac.be]
> 
> > Weird, I've found no evidence that anyone else has this problem: A
> > stupid, tiny DocBook file produces FO output containing faulty entries
> > such as:
> > 
> >   margin-left="1in - -4pc"
> > 

This isn't faulty FO.  It is a valid math expression
that subtracts a negative value, which is equivalent
to adding 4pc.

This change was to fix the wrong left margins, which were
being produced because the $title.margin.left was not
being included in the calculation.  You may recall that
printing with stylesheets 1.61 and earlier produced
overly small left margins.

This change works fine in FOP and XEP.
However, it looks like PassiveTeX's parser is not
handling the expression.  I'll have to make it
conditional on passivetex.extensions.

> I just had no time to look after it and do a post until you did ...
> 
> I get the same in my FO file (margin-left="0.25in - -4pc"), and when
> processing it with Fop 0.20.4 this error message:
> 
> [exec] [ERROR] Error in margin-left property value '0':
> org.apache.fop.fo.expr.PropertyException: No conversion defined

I don't get this error message when processing a book
with the 1.62.0 stylesheets and FOP 0.20.4 or 0.20.5.
Are you using a customization layer?

-- 

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

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]