> -----Original Message-----
> From: Puppala, Kumar (LNG-DAY) [mailto:[EMAIL PROTECTED]


Hi,

> I am having some difficulty understanding the inheritance of attribute
> properties for fo:block and fo:inline. The properties seem to be inherited
> but that theory does not seem to be consistent for all.
<snip />
> If you look at the output, you can notice that the 'text-decoration'
> property was inherited from the parent block and applied on top of the
> current value specified for that property in the inherited block.

This seems actually consistent with the XSL-FO Rec.:
see http://www.w3.org/TR/xsl/slice7.html#text-decoration

All the way down, it says:

<q>This property is not inherited, but descendant boxes of a block box
should be formatted with the same decoration (e.g., they should all be
underlined). The color of decorations should remain the same even if
descendant elements have different "color" values.</q>

> But the same cannot be said about 'font-weight' property. This property
> defaults to 'normal' in the inherited block and does not inherit from
> the parent block.

This indeed seems like a bug, unless I'm missing something.

> Also, what do I need to do in case I don't want to inherit any
> parent block properties in a subsequent block within a parent?

Easy. Just set them all explicitly to the desired values, apart from
'text-decoration' of course, for which the only workaround seems to be not
to specify it on the parent block, but only on the child blocks that
actually do require it.


Greetz,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to