xsl-list
[Top] [All Lists]

Re: xsl fo:block rendering issue

2003-06-11 11:52:07

I am not sure why you are using 2 <fo:block>s.  If
you want two different styles for 'aaa' and 'bbb',
then use:

<fo:table-cell>
  <fo:block>
     <fo:inline>aaa</fo:inline>
     <fo:inline>bbb</fo:inline>
  </fo:block>
</fo:table-cell>

  Otherwise use:

<fo:table-cell>
  <fo:block>aaabbb
  </fo:block>
</fo:table-cell>

<fo:block> will always give you a new line.

Hope this helps!

Betty

On Wed, 11 Jun 2003, Mark Ivs wrote:

I have 2 fo:block elements inside my table cell and I
want those to render one after the other.

Example:
<fo:table-cell>
<fo:block>aaa</fo:block><fo:block>bbb</fo:block>
</fo:table-cell>

Desired output:
aaabbb

But the output I am seeing:
aaa
bbb

'bbb' goes to the next line. The table cell has enough
width to hold both side by side. So I am not sure
what's causing it to render 'bbb' in the next line.

/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Betty Harvey                         | Phone: 410-787-9200 FAX: 9830 
Electronic Commerce Connection, Inc. |        
harvey(_at_)eccnet(_dot_)com                    | Washington,DC XML Users Grp
URL:  http://www.eccnet.com          | http://www.eccnet.com/xmlug
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\\/\/  


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>