Yes I am upgrading but this has to work on the 0.2 

With the b-c it displays but not vertically aligned, 
With the table struct its not displaying


Kindest regards


Theresa Forster
Senior Software Developer

-----Original Message-----
From: Pascal Sancho [mailto:[email protected]] 
Sent: 21 June 2011 08:47
To: [email protected]
Subject: Re: I need bottom up text.

Theresa,

as I said before, you can simplify your FO code with a single
fo:block-container:

<fo:block-container
    absolute-position="absolute"
    height="151.581mm"
    display-align="after">
  <fo:block>*Small print to be added here</fo:block>
</<fo:block-container>

IIRC, you are upgrading from FOP 0.2x to 1.0
Note that with FOP 0.2x, display-align didn't work on fo:b-c, forcing
user to use fo:table construction.
Since FOP 0.9x, it is a good practice to use fo:b-c for such purpose.

Le 21/06/2011 09:22, Theresa Jayne Forster a écrit :
> The FO output is as follows (for the part in question)
>         <fo:block-container font-family="HelveticaNeue" font-weight="normal"
> font-style="normal"
>                              font-size="7pt"
>                              line-height="8.4pt"
>                              text-align="left"
>                              color="cmyk(34%,30%,32%,9%) "
>                              top="140.581mm"
>                              left="12.7mm"
>                              width="50mm"
>                              height="11mm"
>                              position="absolute"
>                              border-color="red"
>                              border-style="solid"
>                              border-width="1px">
>             <fo:table font-family="HelveticaNeue" font-weight="normal"
> font-style="normal"
>                       font-size="7pt"
>                       line-height="8.4pt"
>                       text-align="left"
>                       color="cmyk(34%,30%,32%,9%) "
>                       width="50mm"
>                       height="11mm">
>                <fo:table-body>
>                   <fo:table-row>
>                      <fo:table-cell font-family="HelveticaNeue"
> font-weight="normal" font-style="normal"
>                                     font-size="7pt"
>                                     line-height="8.4pt"
>                                     text-align="left"
>                                     color="cmyk(34%,30%,32%,9%) "
>                                     display-align="after">
>                         <fo:block>
>                            <fo:inline font-weight="normal"
> font-style="normal" text-decoration="no-underline"
>                                       vertical-align="baseline"
>                                       font-size="100%">*Small print to be
> added here</fo:inline>
>                         </fo:block>
>                      </fo:table-cell>
>                   </fo:table-row>
>                </fo:table-body>
>             </fo:table>
>          </fo:block-container>
> 
> Without the table it displays fine just not bottom aligned.
> 
> Kindest regards
> 
> 
> Theresa Forster
> Senior Software Developer
> 
> -----Original Message-----
> From: Andreas L. Delmelle [mailto:[email protected]] 
> Sent: 20 June 2011 18:41
> To: [email protected]
> Subject: Re: I need bottom up text.
> 
> On 20 Jun 2011, at 18:07, Theresa Jayne Forster wrote:
> 
> Hi Theresa
> 
>> I am trying to do a document with a box near the bottom which is bottom
> aligned.
>>  
>> I have tried everything but as soon as I put the apply-templates inside
> the table the text vanished, what am I doing wrong and how can I get it
> working.
> 
> In the future, can you please post the generated FO markup? That helps us
> identify, reproduce and understand the issue better. Right now, based only
> on the XSLT code, we have to infer/imagine which attributes are included in
> the 'smallprint' set. Not that they are necessarily relevant here, but
> still...
> 
> Suppose, for example, that the attribute-set 'smallprint' contains a
> relative font-size of "0.6em".
> Assuming that this attribute-set is also used in the matching template for
> Smallprint nodes, then if you start off with a font-size of 10pt, in the
> outer block-container it will be 6pt, and by the time the text is actually
> reached, that may have shrunk to well below 2pt, which would make the text
> near invisible at normal zoom.
> 
>>From the command-line, you can easily obtain the FO that FOP would get, by
> means of the '-foout' switch.
> 
> This just as some advice that will yield quicker and more to-the-point
> responses.
> 
>> (basically I am looking for similar to the html4.0 loose transitional
>>  
>> <table><tr valign="bottom"><td></td></tr></table>
> 
>>From what I can tell, the code you have should work fine for the most part
> (in FOP 1.0), assuming that there is nothing too exotic in that 'smallprint'
> attribute set or the other content (which we cannot see in your XSL code).
> The only thing that does not work, AFAIK, is a forced "height" on fo:table.
> To work around the latter, you can force the table to grow to the desired
> size by wrapping the cell content in a fo:block-container with explicit
> height.
> 
> 
> HTH!
> 
> Regards,
> 
> Andreas

-- 
Pascal

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1382 / Virus Database: 1513/3714 - Release Date: 06/19/11



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to