fo:leader alternative
Felipe de Alvarenga Leite <[email protected]> Thu, 09 Oct 2003 18:38:27 -0300
| Newsgroups | gmane.text.xml.jfor.general |
|---|---|
| Message-ID | <[email protected]> |
Hello all,
I am trying to translate a html to rtf. I have some <hr>s at my html,
and I know that JFor doesn't understands fo:leader. I can do a table
with a top-border defined to emulate that, but I still have a little
problem at a special case.
I have the following code at my html:
(...)
<table>
<tr><td width="5%"></td><td width="95%"><hr/></td></tr>
</table>
(...)
I'm generating the following xsl-fo for that html:
(...)
<fo:table>
<fo:table-column column-width="1cm"/>
<fo:table-column column-width="18cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell><fo:block/></fo:table-cell>
<fo:table-cell border-top-width="0.5pt" border-top-style="solid"
font-size="0pt" color="white" padding="3pt">
<fo:block>.</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
(...)
But the row is much bigger than I expected it. I expected it to have the
same vertical size of the cell generated by the following xsl-fo:
(...)
<fo:table>
<fo:table-column column-width="19cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell border-top-width="0.5pt" border-top-style="solid"
font-size="0pt" color="white" padding="3pt">
<fo:block>.</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
(...)
But it doesn't. How can I work around this? I would like to not touch
the first cell of the row, but if there is no other way, i will have to
do it...
Thanks!
Felipe
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php