Georg Datterl wrote:
Hi Brad,

Hi Georg/Brad,


Between section and the table there should be some fo code. That would really 
be interesting. I for example have no idea what section translates into.

Me neither. Section I believe is a docbook element. This list deals with XSL-FO not docbook. Send us a sample XSL-FO file and we can help you. Although I still believe this problem is related to indent inheritence. The fix will most likely involve setting start-indent="0" on all fo:table elements.

Chris


Regards,

Georg Datterl

------ Kontakt ------

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:    www.irs-nbg.de
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de

-----Ursprüngliche Nachricht-----
Von: Brad Smith [mailto:[email protected]]
Gesendet: Sonntag, 11. April 2010 16:57
An: [email protected]
Betreff: Re: AW: Alternatives to "float" graphics?

It's actually not a problem with margins per se. Remember that the
solution I was working on involved creating a template for <section>
that caused it to be rendered as a two-column table, the left column
for an optional icon, and the right for the section content. The
problem arises when a nested section is rendered, because it creates a
nested table, so this:

<section role="something">
  S1 content
  <section role="somethingelse">
    S2 content
  </section>
</section>

renders as:

==============================
|                 |                                 |
|   S1 icon   |        S1 content          |
|                 |                                 |
|----------------------------------------------------
|           |                 |                     |
|           |   S2 icon   |   S2 content   |
|           |                 |                     |
==============================

When what I want is:


==============================
|                 |                                 |
|   S1 icon   |        S1 content          |
|                 |                                 |
|----------------------------------------------------
|                 |                                 |
|   S2 icon   |        S2 content          |
|                 |                                 |
==============================


So what I'm looking for is either a way to specify margin graphics
without creating an artificial margin with tables, or to define the
content of a cell in a "top-level" table from the template for an
arbitrarily deep section. Maybe there's a simple xslt trick for doing
this, but so far I haven't found it.

Thanks for all the help so far!
--Brad

On Fri, Apr 9, 2010 at 6:04 AM, Arian <[email protected]> wrote:
not sure if this is related but heres what Andreas told me before as i
was wondering also why left margins/indents in my document seemed to
be inherited if its helps out ...

"What this comes down to is that the margin-* properties --that exist
solely for purposes of compatibility with CSS-- are mapped to the
native XSL-FO properties *-indent. While the former are non-inherited,
their native XSL-FO counterparts most certainly are.

As pointed out on the Wiki, most implementations choose to ignore
this, while FOP follows XSL-FO more strictly and forces you to use a
configuration setting to trigger the CSS-like behavior.

See also: 
http://xmlgraphics.apache.org/fop/0.95/configuration.html#general-elements
(look for element 'break-indent-inheritance')

That said, solving it by resetting start-indent to 0 on the fo:table
would probably be the cleanest, from an XSL-FO point of view.

Regards,
Andreas"

-Arian

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





--
~ Second Shift: An original, serialized audio adventure ~
            http://www.secondshiftpodcast.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]





---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to