layout stuff

[email protected] Thu, 20 Nov 2003 10:27:45 +0100
Newsgroups gmane.text.xml.jfor.general
Message-ID <[email protected]>
hi,

i am using jfor v0.7.1 to confert xml to rtf.
i tried to find a list with commands implemented, but i could not.
i have some layout problems and may you can give me,a newbie, some
hints....

a) table border

...
            <fo:block>
               <fo:table border-after-color="#000000" border-bottom-color="
#000000" border-before-color="#000000" border-end-color="#000000"
border-left-color="#000000" border-right-color="#000000" border-top-color="
#000000" border-style="solid">
                 <fo:table-column column-width="90mm"/>
                 <fo:table-column column-width="90mm"/>
                 <fo:table-body>
                    <fo:table-row>
                      <fo:table-cell border-top-style="solid"
border-bottom-style="solid" border-start-style="solid" padding="0.2mm">
                         <fo:block><xsl:value-of select="value[@name=
'text_return' ]"/></fo:block>
                      </fo:table-cell>
                      <fo:table-cell border-top-style="solid"
border-bottom-style="solid" border-end-style="solid" text-align="end"
padding="0.2mm">
                         <fo:block><xsl:value-of select="value[@name=
'return' ]"/></fo:block>
                      </fo:table-cell>
                    </fo:table-row>
                 </fo:table-body>
               </fo:table>
            </fo:block>
          </fo:flow>
...

but in my rtf documents there are no borders. any clue?


b) table height
...
               <fo:table height="54mm">
                 <fo:table-column column-width="90mm"/>
                 <fo:table-column column-width="90mm"/>
                 <fo:table-body>
                    <fo:table-row>
                      <fo:table-cell >
....

it does not work. the table height fits to its content.
are there any workarounds to give a table a certain height?


c) table alignment

I have got a table. the left coloum has to be left aligned and the right
one has to be centered.
i can only make to align both the same way ; (

....
                 <fo:flow flow-name="xsl-region-body">
                    <fo:block>
                      <fo:table border="1pt solid black">
                            <fo:table-column column-width="100mm"/>
                            <fo:table-column column-width="82mm"/>
                         <fo:table-body>
                           <fo:table-row>
                              <fo:table-cell border-style="solid"
border-width="0.3mm" text-align="start" border="1pt solid black">
                                <fo:block font-weight="bold" font-size="
10pt" text-align="start"><fo:inline></fo:inline><xsl:value-of select="row1
"/></fo:block>
                              </fo:table-cell>
                              <fo:table-cell border="solid" border-width="
0.3mm" text-align="center">
                                <fo:block font-weight="bold" font-size="
10pt" text-align="center"><xsl:value-of select="row2"/></fo:block>
                              </fo:table-cell>
                           </fo:table-row>
...


thanks for your help
cheers

flora


"This message and any attachment ("the Message") are confidential. If you
have received the Message in error, please notify the sender immediately
and delete the Message from your system , any use of the Message is
forbidden.
Correspondence via e-mail is primarily for information purposes. RZB
neither makes nor accepts legally binding statements unless otherwise
agreed to the contrary."





-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/