RE: I need bottom up text.

2011-06-21 Thread Theresa Jayne Forster
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:andreas.delme...@telenet.be] 
Sent: 20 June 2011 18:41
To: fop-users@xmlgraphics.apache.org
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
  
 tabletr valign=bottomtd/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
---



-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



Re: I need bottom up text.

2011-06-21 Thread Pascal Sancho
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:andreas.delme...@telenet.be] 
 Sent: 20 June 2011 18:41
 To: fop-users@xmlgraphics.apache.org
 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
  
 tabletr valign=bottomtd/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: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: I need bottom up text.

2011-06-21 Thread Theresa Jayne Forster
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:pascal.san...@takoma.fr] 
Sent: 21 June 2011 08:47
To: fop-users@xmlgraphics.apache.org
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:andreas.delme...@telenet.be] 
 Sent: 20 June 2011 18:41
 To: fop-users@xmlgraphics.apache.org
 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
  
 tabletr valign=bottomtd/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

Re: I need bottom up text.

2011-06-21 Thread Pascal Sancho
Theresa,

With FOP 1.0, you can use either fo:table construction or
fo:block-container, both gives normal behavior and text is displayed at
bottom of the surrounding fo:block-container.

Note that (as Andreas aid) the height attribute have no effect on
fo:table; you have to set it on fo:table-row.
When applying this, your code is OK.

If this is not what you expected, you should provide further info.
Probably you want something else (like footnotes).

Le 21/06/2011 10:37, Theresa Jayne Forster a écrit :
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
 


-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



RE: I need bottom up text.

2011-06-21 Thread Theresa Jayne Forster
I solved it in the end, the problem is that you have to define a column-width 
and also a row height otherwise it doesn’t show...


Kindest regards


Theresa Forster
Senior Software Developer


-Original Message-
From: Pascal Sancho [mailto:pascal.san...@takoma.fr] 
Sent: 21 June 2011 09:58
To: fop-users@xmlgraphics.apache.org
Subject: Re: I need bottom up text.

Theresa,

With FOP 1.0, you can use either fo:table construction or
fo:block-container, both gives normal behavior and text is displayed at
bottom of the surrounding fo:block-container.

Note that (as Andreas aid) the height attribute have no effect on
fo:table; you have to set it on fo:table-row.
When applying this, your code is OK.

If this is not what you expected, you should provide further info.
Probably you want something else (like footnotes).




-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org



I need bottom up text.

2011-06-20 Thread Theresa Jayne Forster
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.

 

(basically I am looking for similar to the html4.0 loose transitional

 

tabletr valign=bottomtd/td/tr/table

 

The FO I am using is as follows, I can see the border but nothing inside

But if I just had the block-container then a block  it works fine.

 

fo:block-container top=140.581mm left=12.7mm width=50mm height=11mm
position=absolute border-color=red border-style=solid
border-width=1px  xsl:use-attribute-sets=smallprint

fo:table width=50mm height=11mm  xsl:use-attribute-sets=smallprint

fo:table-body

fo:table-row

 
fo:table-cell display-align=after xsl:use-attribute-sets=smallprint

 
fo:block

 
xsl:apply-templates select=$Smallprint/

 
/fo:block

 
/fo:table-cell

/fo:table-row

/fo:table-body

/fo:table

/fo:block-container

 

Kindest regards

 


Theresa Forster

Senior Software Developer



 



Re: I need bottom up text.

2011-06-20 Thread Andreas L. Delmelle
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
  
 tabletr 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
---
-
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org