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 Ramesh Suribhatla <ra...@yahoo.com> on 2002/05/14 12:00:59 UTC

Attribute's effect in nested fo:inline

Hi,

I am using FOP 0.20.2. I am having a problem while
applying 'text-decoration' and 'vertical-align'
attributes to a nested fo:inline. I have some text
content in the inner fo:inline where the effect of the
above attributes is not being seen, when they are
specified in the outer fo:inline. If content is in the
fo:inline where the attributes are specified, things
are working fine. Please see in the examples below.

But, it is working fine for 'color' attribute, the
effect of which is being shown on inner fo:inline
content even if the attribute is specified in outer
fo:inline.

<fo:inline text-decoration="underline" color="blue">
   <fo:inline font-weight="bold">
     Text to be underlined
   </fo:inline>
</fo:inline>

<!-- Java with TM as superscipt --> 
<fo:block color="blue">
  Java
  <fo:inline  vertical-align="super" >
    <fo:inline font-size="8pt">
      TM
    </fo:inline>
  </fo:inline>
</fo:block>

Are these things still to be implemented in FOP? If
so, how soon can we expect this? Please let me know
about this, so that I can code my program to add the
attribute to the inner fo:inline. Also, is there any
other way to get this?

Thanks,
Ramesh


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

Re: Attribute's effect in nested fo:inline

Posted by Ramesh Suribhatla <ra...@yahoo.com>.
Hi Mr. Ralf,

Thanks a lot for your prompt reply. I will have to
take care that those attributes are carried on to
inner fo:inline to get the desired effect.

Regards,
Ramesh

--- Ralf Steppacher <st...@esteam.de> wrote:

> The XSL spec says that both text-decoration and
> vertical-align are not 
> inherited
>
(http://www.w3.org/TR/xsl/slice7.html#vertical-align).
> So FOP just sticks to the rules...
> 
> 
> Ralf
> 


__________________________________________________
Do You Yahoo!?
LAUNCH - Your Yahoo! Music Experience
http://launch.yahoo.com

Re: Attribute's effect in nested fo:inline

Posted by Ralf Steppacher <st...@esteam.de>.
> I am using FOP 0.20.2. I am having a problem while
> applying 'text-decoration' and 'vertical-align'
> attributes to a nested fo:inline. I have some text
> content in the inner fo:inline where the effect of the
> above attributes is not being seen, when they are
> specified in the outer fo:inline. If content is in the
> fo:inline where the attributes are specified, things
> are working fine.

The XSL spec says that both text-decoration and vertical-align are not 
inherited (http://www.w3.org/TR/xsl/slice7.html#vertical-align).
So FOP just sticks to the rules...


Ralf