Hi,

you can also uses a text-align attribute on the block element.

Philippe

2010/2/18 Venkat Reddy <vanukuri.ven...@googlemail.com>

> Hi,
>
> If you keep the third cell elements in another table, then it should work.
>
> Third cell should be ....
>
>
> <fo:table-cell display-align="center" border-width="0.5mm"
> border-style="solid">
>                 <fo:block>
>         <fo:table>
>
>           <fo:table-body>
>                     <fo:table-row>
>               <fo:table-cell display-align="center">
>                     <fo:block>Some text with instream centered</fo:block>
>
>               </fo:table-cell>
>               <fo:table-cell display-align="center">
>                     <fo:block>
>                       <fo:instream-foreign-object>
>                             <svg height="20pt" width="20pt">
>                           <g style="fill:red; stroke:#000000">
>                             <rect height="20" width="20" x="0" y="0" />
>                           </g>
>                             </svg>
>                           </fo:instream-foreign-object>
>                     </fo:block>
>               </fo:table-cell>
>               </fo:table-row>
>           </fo:table-body>
>       </fo:table>
>
>         </fo:block>
>               </fo:table-cell>
>
> If you replace the above xsl:fo script with your third cell, it should work
> as you expected.
>
> Venkat.
>
>
> Jeandur wrote:
>
>> Dear Fop Users,
>>
>> I'm facing a very strange behavior with fop095/jdk1.6 and  mixed "content"
>> (Instream and text) inside a table cell :
>> . If the text is alone inside the cell, it is centered.
>> . If the instream object is alone inside the cell, it is centered too.
>> . But with booth inside the same cell, it doesn't work. Only the Instream
>> object is centered and the text is bottom aligned.
>>
>>
>> Following the code I'm using :
>> <!-- [..] -->
>>            <fo:table-body>
>>              <fo:table-row>
>>                <fo:table-cell display-align="center" border-width="0.5mm"
>> border-style="solid">
>>                  <fo:block> Some text vertical centered</fo:block>
>>                </fo:table-cell>
>>
>>                <fo:table-cell display-align="center" border-width="0.5mm"
>> border-style="solid">
>>                  <fo:block>
>>                    <fo:instream-foreign-object>
>>                      <svg height="20pt" width="20pt">
>>                        <g style="fill:red; stroke:#000000">
>>                          <rect height="20" width="20" x="0" y="0" />
>>                        </g>
>>                      </svg>
>>                    </fo:instream-foreign-object>
>>                  </fo:block>
>>                </fo:table-cell>
>>
>>                <fo:table-cell display-align="center" border-width="0.5mm"
>> border-style="solid">
>>                  <fo:block>Some text with instream centered
>>                  ?<fo:instream-foreign-object>
>>                      <svg height="20pt" width="20pt">
>>                        <g style="fill:red; stroke:#000000">
>>                          <rect height="20" width="20" x="0" y="0" />
>>                        </g>
>>                      </svg>
>>                    </fo:instream-foreign-object> </fo:block>
>>                </fo:table-cell>
>>              </fo:table-row>
>>            </fo:table-body>
>> <!-- [...]-->
>> This is very annoying for us, because it seemed to work with fop025 :-(
>>
>> Any suggestions or advice will be armed welcome !
>> Thanks in advance.
>> Jean
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
>
>

Reply via email to