You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "Robert P. J. Day" <rp...@mindspring.com> on 2003/09/15 13:47:04 UTC

problem with "margin-left" attribute

  FOP does not seem to be properly processing the "margin-left"
attribute.  an example:

  writing in docbook, i frequently have an <orderedlist> or
<admonition> which adds an automatic indent, such as

   Tip   This would be the text
         of the tip ...

or

   1.    This might be the first question
         of the list of exercises...

now, if i *don't* add a margin-left attribute to things like
code sgements, and i put a code segment (like a <screen>) into
that text, it will show up as 

   Tip   Here's a tip that show's some code:

         print hello, world ;


IOW, the verbatim element in this case is properly indented to
match the contents of that block.

  however, if i add an attribute of "margin-left" of, say, 0.25in,
to indent all my code segments, what i'll get is

   Tip   Here's a tip ...

      print hello, world ;

as you can see, the indentation is applied not relative to the 
containing block, but to the left side of the page area (am i 
mangling the terminology?)

  a colleague tells me he tried the same thing with XEP and it
worked properly.  he got

   Tip   Here's a tip ...
  
            print hello, world ;
         ^^^
         (0.25in indent above)

so XEP gets it right, but FOP doesn't take into account the
immediately containing block.

  thoughts?

rday


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Error with Block-container

Posted by Abhijit Junnare <ma...@yahoo.com>.
Hi,
I am having problem with fo:block-container. When I
run FOP I am getting an error 
[ERROR] java.lang.ClassCastException:
org.apache.fop.layout.BlockArea

Did anyone come accross something like this?
Abhi

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: problem with "margin-left" attribute

Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: Robert P. J. Day [mailto:rpjday@mindspring.com]
> Sent: maandag 15 september 2003 13:47
>
>
>   FOP does not seem to be properly processing the "margin-left"
> attribute.  an example:
>

Possible. FOP Compliance page
(http://xml.apache.org/fop/compliance.html#fo-property-margin-left)
indicates only partial support for the margin-left property (only WRT page /
region).

>
>   thoughts?
>

I'm not sure whether this issue has already been addressed in the developer
release...

Anyone?


Greetz,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org