Re: Table header colors.

2004-06-15 Thread Amita Rathore

Can't understand how it can be done,


can you please provide a snippet.







Chris Bowditch [EMAIL PROTECTED]
06/14/2004 05:08 PM
Please respond to fop-user

To:
   [EMAIL PROTECTED]
cc:
   
Subject:
   Re: Table header colors.


Amita Rathore wrote:

 
 I had already tried this, but doing so the padding goes off.

Oh, I see. You might be able to use margin instead, if you dont have borders

on the cells, then the spacing effect between text should appear the same.

Chris




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Table header colors.

2004-06-14 Thread Chris Bowditch
Amita Rathore wrote:
Now I am trying to create a table , the header of the table contains 4 
columns. The text for first column is as small as a single word , while 
for second it wraps across two lines.

The problem is that I am trying to put a background color for the header 
cells with a padding of 2pts.
Are you defining the background color on the cell on the block within the 
cell? Please provide a snippet of your XSL-FO.

snip/
Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Table header colors.

2004-06-14 Thread Amita Rathore

I had already tried this, but doing
so the padding goes off.







Chris Bowditch [EMAIL PROTECTED]
06/14/2004 04:45 PM
Please respond to fop-user

To:
   [EMAIL PROTECTED]
cc:
   
Subject:
   Re: Table header colors.

   

Amita Rathore wrote:

 
 Here goes the snippet:
 
 fo:table table-layout=fixed 
 fo:table-column column-width=15mm/
 fo:table-column column-width=15mm/
 fo:table-column column-width=28mm/
 fo:table-body
 fo:table-row

  
  fo:table-cell padding=2pt   
 text-align=left 
  
  fo:block font-size=10pt 
 background-color=#ffDate/fo:block
   

This is your problem. You need to specify background-color on the cell
instead 
of the block. That way the whole cell will have the background color, and
not 
just the block, whose length may not fill up the row height, as youve 
discovered. E.g.

fo:table-cell padding=2pt text-align=left 
background-color=#fffo:block 
font-size=10ptDate/fo:block/fo:table-cell

snip/

Chris



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Table header colors.

2004-06-14 Thread Chris Bowditch
Amita Rathore wrote:
I had already tried this, but doing so the padding goes off.
Oh, I see. You might be able to use margin instead, if you dont have borders 
on the cells, then the spacing effect between text should appear the same.

Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Table Header problem

2004-05-28 Thread Kaustuva Narayan Sharma
I got it thanksa sily mistake on may part :-)
This is my whole xsl file. And tables with headers r generating fine :

=

?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.1
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format;
exclude-result-prefixes=fo
  xsl:output method=xml version=1.0 omit-xml-declaration=no
indent=yes/
   xsl:template match=Report
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
fo:simple-page-master master-name=simpleA4
page-height=29.7cm page-width=21cm margin-top=2cm
margin-bottom=2cm margin-left=2cm margin-right=2cm
  fo:region-body/
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=simpleA4
fo:flow flow-name=xsl-region-body
   fo:block font-size=10pt
fo:table table-layout=fixed
  fo:table-column column-width=4cm/
  fo:table-column column-width=4cm/
  fo:table-column column-width=5cm/
  fo:table-header
 fo:table-row
 fo:table-cell
 fo:block font-size=12pt
font-weight=boldHeader1/fo:block
 /fo:table-cell
 fo:table-cell
 fo:block font-size=12pt
font-weight=boldHeader2/fo:block
 /fo:table-cell
 fo:table-cell
 fo:block font-size=12pt
font-weight=boldHeader3/fo:block
 /fo:table-cell
 /fo:table-row
 /fo:table-header
  fo:table-body
xsl:apply-templates/
  /fo:table-body
/fo:table
  /fo:block
/fo:flow
  /fo:page-sequence
/fo:root
  /xsl:template
  xsl:template match=R
fo:table-row
  fo:table-cell
fo:block
  xsl:value-of select=Data1/
/fo:block
  /fo:table-cell
  fo:table-cell
fo:block
  xsl:value-of select=Data2/
/fo:block
  /fo:table-cell
  fo:table-cell
fo:block
  xsl:value-of select=Data3/
/fo:block
  /fo:table-cell
/fo:table-row
  /xsl:template
/xsl:stylesheet

===

-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 27, 2004 7:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Table Header problem


On May 27, 2004, at 6:47 AM, Kaustuva Narayan Sharma wrote:
 Hi,

 I am a beginner to FOP. I am trying to convert an XML to PDF from a
 Java app. The data is to be displayed in a table. But when I try to 
 put headers into the table i am getting the following error:

 org.apache.fop.apps.FOPException: Currently only Table Rows are
 supported in table body, header and footer

 My xsl looks like this: 
 ==
  fo:table
  
    fo:table-header
    fo:table-row
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader1/fo:block
  /fo:table-cell
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader2/fo:block
  /fo:table-cell
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader3/fo:block
  /fo:table-cell
     /fo:table-row
    /fo:table-header
   fo:table-body

     fo:table-row
   fo:table-cell
     fo:block
   xsl:value-of select=Data1/
     /fo:block
   /fo:table-cell
   fo:table-cell
     fo:block
   xsl:value-of select=Data2/
     /fo:block
   /fo:table-cell
   fo:table-cell
     fo:block
   xsl:value-of select=Data3/
     /fo:block
   /fo:table-cell
     /fo:table-row
     /fo:table-body
  /fo:table =

 I am using fop-0.20.5. Can you pls suggest as to what could be the
 cause?

 Thanks.

 Regards,

 Kaustuv Sharma

One problem I notice is that you do not have fo:table-column 
column-width=XXcm /. You can see an example of a complete table 
here:

http://xml.apache.org/fop/faq.html#keep-with

I don't know if it's a problem but there was a lot of extra white space 
in the table-body. Whitespace is OK, but perhaps there's a bad 
character in there?

Hope this helps!

Web Maestro Clay

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Table Header problem

2004-05-28 Thread Pascal Sancho
Hi,
The xsl:apply-templates/ in the xsl:template match=Report should be 
replaced with xsl:apply-templates select=R/.
If not, extra text can be added to fo:table-body (due to default xslt rules)

Tcho


-Message d'origine-
De : Kaustuva Narayan Sharma [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 28 mai 2004 06:15
À : [EMAIL PROTECTED]
Objet : RE: Table Header problem

I got it thanksa sily mistake on may part :-) This is my whole xsl file. 
And tables with headers r generating fine :

=

?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.1
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:fo=http://www.w3.org/1999/XSL/Format;
exclude-result-prefixes=fo
  xsl:output method=xml version=1.0 omit-xml-declaration=no
indent=yes/
   xsl:template match=Report
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
fo:simple-page-master master-name=simpleA4
page-height=29.7cm page-width=21cm margin-top=2cm
margin-bottom=2cm margin-left=2cm margin-right=2cm
  fo:region-body/
/fo:simple-page-master
  /fo:layout-master-set
  fo:page-sequence master-reference=simpleA4
fo:flow flow-name=xsl-region-body
   fo:block font-size=10pt
fo:table table-layout=fixed
  fo:table-column column-width=4cm/
  fo:table-column column-width=4cm/
  fo:table-column column-width=5cm/
  fo:table-header
 fo:table-row
 fo:table-cell
 fo:block font-size=12pt
font-weight=boldHeader1/fo:block
 /fo:table-cell
 fo:table-cell
 fo:block font-size=12pt
font-weight=boldHeader2/fo:block
 /fo:table-cell
 fo:table-cell
 fo:block font-size=12pt
font-weight=boldHeader3/fo:block
 /fo:table-cell
 /fo:table-row
 /fo:table-header
  fo:table-body
xsl:apply-templates/
  /fo:table-body
/fo:table
  /fo:block
/fo:flow
  /fo:page-sequence
/fo:root
  /xsl:template
  xsl:template match=R
fo:table-row
  fo:table-cell
fo:block
  xsl:value-of select=Data1/
/fo:block
  /fo:table-cell
  fo:table-cell
fo:block
  xsl:value-of select=Data2/
/fo:block
  /fo:table-cell
  fo:table-cell
fo:block
  xsl:value-of select=Data3/
/fo:block
  /fo:table-cell
/fo:table-row
  /xsl:template
/xsl:stylesheet

===

-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 27, 2004 7:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Table Header problem


On May 27, 2004, at 6:47 AM, Kaustuva Narayan Sharma wrote:
 Hi,

 I am a beginner to FOP. I am trying to convert an XML to PDF from a
 Java app. The data is to be displayed in a table. But when I try to 
 put headers into the table i am getting the following error:

 org.apache.fop.apps.FOPException: Currently only Table Rows are
 supported in table body, header and footer

 My xsl looks like this: 
 ==
  fo:table
  
    fo:table-header
    fo:table-row
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader1/fo:block
  /fo:table-cell
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader2/fo:block
  /fo:table-cell
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader3/fo:block
  /fo:table-cell
     /fo:table-row
    /fo:table-header
   fo:table-body

     fo:table-row
   fo:table-cell
     fo:block
   xsl:value-of select=Data1/
     /fo:block
   /fo:table-cell
   fo:table-cell
     fo:block
   xsl:value-of select=Data2/
     /fo:block
   /fo:table-cell
   fo:table-cell
     fo:block
   xsl:value-of select=Data3/
     /fo:block
   /fo:table-cell
     /fo:table-row
     /fo:table-body
  /fo:table =

 I am using fop-0.20.5. Can you pls suggest as to what could be the
 cause?

 Thanks.

 Regards,

 Kaustuv Sharma

One problem I notice is that you do not have fo:table-column 
column-width=XXcm /. You can see an example of a complete table 
here:

http://xml.apache.org/fop/faq.html#keep-with

I don't know if it's a problem but there was a lot of extra white space 
in the table-body. Whitespace is OK, but perhaps there's a bad 
character in there?

Hope this helps!

Web Maestro Clay

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL

Table Header problem

2004-05-27 Thread Kaustuva Narayan Sharma
Title: Message







Hi,

I am a beginner to FOP. I am 
trying to convert an XML to PDF from a Java 
app. The data is to be displayed in a table. But when I try to put 
headers into the table i am getting the following error:

org.apache.fop.apps.FOPException: Currently only Table Rows are supported 
in table body, header and footer
My xsl looks like 
this:

==

fo:table 
fo:table-header 
fo:table-row 
fo:table-cellfo:block font-size="12pt" 
font-weight="bold"Header1/fo:block 
/fo:table-cell 
fo:table-cellfo:block font-size="12pt" 
font-weight="bold"Header2/fo:block 
/fo:table-cell 
fo:table-cellfo:block font-size="12pt" 
font-weight="bold"Header3/fo:block 
/fo:table-cell 
/fo:table-row 
/fo:table-header 
fo:table-body

 
fo:table-row 
fo:table-cell 
fo:block 
xsl:value-of 
select="Data1"/ 
/fo:block 
/fo:table-cell 
fo:table-cell 
fo:block 
xsl:value-of 
select="Data2"/ 
/fo:block 
/fo:table-cell 
fo:table-cell 
fo:block 
xsl:value-of 
select="Data3"/ 
/fo:block 
/fo:table-cell 
/fo:table-row 
/fo:table-body 
/fo:table
=


I am using fop-0.20.5. Can you pls suggest as to what could be the 
cause?

Thanks.

Regards,
KaustuvSharma





Re: Table Header problem

2004-05-27 Thread Clay Leeds
On May 27, 2004, at 6:47 AM, Kaustuva Narayan Sharma wrote:
Hi,
I am a beginner to FOP. I am trying to convert an XML to PDF from a 
Java app. The data is to be displayed in a table. But when I try to 
put headers into the table i am getting the following error:

org.apache.fop.apps.FOPException: Currently only Table Rows are 
supported in table body, header and footer

My xsl looks like this:
==
 fo:table
 
   fo:table-header
   fo:table-row
 fo:table-cell
 fo:block font-size=12pt font-weight=boldHeader1/fo:block
 /fo:table-cell
 fo:table-cell
 fo:block font-size=12pt font-weight=boldHeader2/fo:block
 /fo:table-cell
 fo:table-cell
 fo:block font-size=12pt font-weight=boldHeader3/fo:block
 /fo:table-cell
    /fo:table-row
   /fo:table-header
  fo:table-body
    fo:table-row
  fo:table-cell
    fo:block
  xsl:value-of select=Data1/
    /fo:block
  /fo:table-cell
  fo:table-cell
    fo:block
  xsl:value-of select=Data2/
    /fo:block
  /fo:table-cell
  fo:table-cell
    fo:block
  xsl:value-of select=Data3/
    /fo:block
  /fo:table-cell
    /fo:table-row
    /fo:table-body
 /fo:table
=
I am using fop-0.20.5. Can you pls suggest as to what could be the 
cause?

Thanks.
Regards,
Kaustuv Sharma
One problem I notice is that you do not have fo:table-column 
column-width=XXcm /. You can see an example of a complete table 
here:

http://xml.apache.org/fop/faq.html#keep-with
I don't know if it's a problem but there was a lot of extra white space 
in the table-body. Whitespace is OK, but perhaps there's a bad 
character in there?

Hope this helps!
Web Maestro Clay
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Table Header problem

2004-05-27 Thread Pascal Sancho
Hi,
Your fo output seems to be correct (except that there is no fo:table-column, 
witch are required by fop to set column width)
It could be a wrong transformation (ie there is no table-header or table-body 
markup in your xml source file).
(I suppose that your example is expected result, but not actual output)

tcho 

-Message d'origine-
De : Clay Leeds [mailto:[EMAIL PROTECTED] 
Envoyé : jeudi 27 mai 2004 16:20
À : [EMAIL PROTECTED]
Objet : Re: Table Header problem

On May 27, 2004, at 6:47 AM, Kaustuva Narayan Sharma wrote:
 Hi,

 I am a beginner to FOP. I am trying to convert an XML to PDF from a 
 Java app. The data is to be displayed in a table. But when I try to 
 put headers into the table i am getting the following error:

 org.apache.fop.apps.FOPException: Currently only Table Rows are 
 supported in table body, header and footer

 My xsl looks like this:
 ==
  fo:table
  
    fo:table-header
    fo:table-row
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader1/fo:block
  /fo:table-cell
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader2/fo:block
  /fo:table-cell
  fo:table-cell
  fo:block font-size=12pt font-weight=boldHeader3/fo:block
  /fo:table-cell
     /fo:table-row
    /fo:table-header
   fo:table-body

     fo:table-row
   fo:table-cell
     fo:block
   xsl:value-of select=Data1/
     /fo:block
   /fo:table-cell
   fo:table-cell
     fo:block
   xsl:value-of select=Data2/
     /fo:block
   /fo:table-cell
   fo:table-cell
     fo:block
   xsl:value-of select=Data3/
     /fo:block
   /fo:table-cell
     /fo:table-row
     /fo:table-body
  /fo:table
 =

 I am using fop-0.20.5. Can you pls suggest as to what could be the 
 cause?

 Thanks.

 Regards,

 Kaustuv Sharma

One problem I notice is that you do not have fo:table-column 
column-width=XXcm /. You can see an example of a complete table
here:

http://xml.apache.org/fop/faq.html#keep-with

I don't know if it's a problem but there was a lot of extra white space in the 
table-body. Whitespace is OK, but perhaps there's a bad character in there?

Hope this helps!

Web Maestro Clay

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Table Header after Pagebreak

2004-02-19 Thread Jan Kohnert
Hello List,

I am creating PDF Files using FOP. 
I generate an table with an header. My problem is, that I dont want to have
the header on the next site after a page break. How can I avoid this
'floating header'?
Thanks in andvance!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Table Header after Pagebreak

2004-02-19 Thread Chris Bowditch
Jan Kohnert wrote:
Hello List,
I am creating PDF Files using FOP. 
I generate an table with an header. My problem is, that I dont want to have
the header on the next site after a page break. How can I avoid this
'floating header'?
Add the following property to fo:table element:
table-omit-header-at-break=true
Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: image in table header overlapping table body -- possible ? [additional info]

2003-11-16 Thread Roland Neilands
  Use nested tables:
 
 That is what i tried yesterday, too. Thanks anyway.
 It's a solution to get the image in the first header of the table. But i
 still end up with the problem having it repeated after a page break.
 The text header will be repeated as there is data in its table-body being
 continued after the page break. But there is no data in the table-body that
 belongs to the image header so there is no reason for FOP to repeat the
 header (the image) on the next page.

So put a single cell in the body beneath the image.
Put a blank image or a non-breaking space(#160;) in it to force it to appear.

Cheers,
Roland 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: image in table header overlapping table body -- possible ?

2003-11-14 Thread Roland Neilands
Roland,

Use nested tables:

fo:table table-omit-header-at-break=false
  fo:table-column column-width=3cm/
  fo:table-column column-width=17cm/
  fo:table-header
fo:table-row
  fo:table-cell
fo:block !-- Your image here -- /fo:block
  /fo:table-cell
  fo:table-cell /
/fo:table-row
  /fo:table-header
  fo:table-body
fo:table-row
  fo:table-cell /
  fo:table-cell
  
!-- Your current table (text only) -- 
fo:table table-omit-header-at-break=false
   ...
/fo:table
  
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table

Cheers,
Roland

 I need to build a table with a header line containing an image and a single
 line of text. The problem is the image beeing to high to fit into the header
 line which causes the header line to be resized vertically to match the
 height of the image.
 
 But i need the image to overflow the bottom of the header line (leaving its
 height unchanged) so that it flows right into the body area. The problem is
 that the overflow property isn't supported yet and a number-rows-spanned
 does not seem to work here because header and body rows obviously cannot be
 mixed.
 
 
 I try to draw what i want to get (view with fixed-width font):
 
 
 
 xsl-fo-area   /  in PDF it should look like that
 __/
   /
   /
   /  +-+
 table-header  /  | |   Some header text ...
   /  | header- |
   /  |  image  |   first row of table-body
   /  | |   second row of table-body
 table-body/  +-+   third row of table-body
   /  .
   /  .
   /  .
   /  .
   /
 
 
 (i hope that makes my problem clear)
 
 
 As i generate the fo code and the PDF at runtime from different data in a
 database, there may occur page breaks cutting the table into several pieces
 and the header absolutely has to appear above each piece.
 I also tried to use position=relative with the top and left properties set
 but did not get it working although i am sure this should work with the
 actual version. Mabe i just don't see the forest for the trees ...
 
 Does anyone have an idea of how to achieve this?
 I would really appreciate any hint.
 
 Thanks in advance,
 Roland
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: image in table header overlapping table body -- possible ?

2003-11-14 Thread Andreas L. Delmelle
 -Original Message-
 From: Roland Neilands [mailto:[EMAIL PROTECTED]

 Roland,

 Use nested tables:


Cool! There goes my attempt ... :)

Only problem I still see is how's he going to make the contents of the
table-body flow alongside the image in the header.


Greetz,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: image in table header overlapping table body -- possible ?

2003-11-14 Thread Roland Neilands
  Use nested tables:
 Only problem I still see is how's he going to make the contents of the
 table-body flow alongside the image in the header.

It's a separate table with a separate header. Try it  see ;)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



FW: image in table header overlapping table body -- possible ?

2003-11-14 Thread Roland Neilands
Apologies, code should have been:

fo:table
  fo:table-column column-width=3cm/
  fo:table-column column-width=17cm/
  fo:table-body
fo:table-row
  fo:table-cell
fo:table table-omit-header-at-break=false
  fo:table-column column-width=3cm/
  fo:table-header
  fo:table-row
fo:table-cell
  fo:block !-- Your image here -- /fo:block
/fo:table-cell
  /fo:table-row
/fo:table
  /fo:table-cell
  fo:table-cell
fo:table-column column-width=17cm/
fo:table-header
  fo:table-row
fo:table-cell
!-- Your current table (text only) -- 
  fo:table table-omit-header-at-break=false
...
  /fo:table
/fo:table-cell
  /fo:table-row
/fo:table
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table

Cheers,
Roland

 I need to build a table with a header line containing an image and a single
 line of text. The problem is the image beeing to high to fit into the header
 line which causes the header line to be resized vertically to match the
 height of the image.
 
 But i need the image to overflow the bottom of the header line (leaving its
 height unchanged) so that it flows right into the body area. The problem is
 that the overflow property isn't supported yet and a number-rows-spanned
 does not seem to work here because header and body rows obviously cannot be
 mixed.
 
 
 I try to draw what i want to get (view with fixed-width font):
 
 
 
 xsl-fo-area   /  in PDF it should look like that
 __/
   /
   /
   /  +-+
 table-header  /  | |   Some header text ...
   /  | header- |
   /  |  image  |   first row of table-body
   /  | |   second row of table-body
 table-body/  +-+   third row of table-body
   /  .
   /  .
   /  .
   /  .
   /
 
 
 (i hope that makes my problem clear)
 
 
 As i generate the fo code and the PDF at runtime from different data in a
 database, there may occur page breaks cutting the table into several pieces
 and the header absolutely has to appear above each piece.
 I also tried to use position=relative with the top and left properties set
 but did not get it working although i am sure this should work with the
 actual version. Mabe i just don't see the forest for the trees ...
 
 Does anyone have an idea of how to achieve this?
 I would really appreciate any hint.
 
 Thanks in advance,
 Roland
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: image in table header overlapping table body -- possible ? [additional info]

2003-11-14 Thread Roland Schroth
 -Original Message-
 From: Roland Neilands [mailto:[EMAIL PROTECTED]

 Roland,

 Use nested tables:

That is what i tried yesterday, too. Thanks anyway.
It's a solution to get the image in the first header of the table. But i
still end up with the problem having it repeated after a page break.
The text header will be repeated as there is data in its table-body being
continued after the page break. But there is no data in the table-body that
belongs to the image header so there is no reason for FOP to repeat the
header (the image) on the next page.
And with this problem in mind i come to the idea of Andreas.

 - Original Message - 
 From: Andreas L. Delmelle [EMAIL PROTECTED]


 I see a remote possiblity in performing some XSL trickery (resting on the
 assumption that the rows in the table body are generated by XML elements).
 If you define a row height globally in your stylesheet, as well as the
 region-body height... You know in advance how many rows will fit on a
 page... ( $regbh div $rowh ).

And here we have my next problem ...
There occur line breaks in the rows (mostly generated within FOP caused by
hyphenation), that i cannot calculate that easy. Therefore i cannot set a
fixed row height and i do not know how many rows there will be on a page. I
tried to calculate these linebreaks according to the amount of text in the
fields but that's quite dirty (and not completely functioning at all ...)

 For the moment, however, it's the closest thing to a solution I can come
up
 with...

I agree.

I think i will try to get some other things working first and come back to
this one next week. Sometimes a weekend of doing nothing helps more than
days of thinking ;-)

Thanks to both of you and have a nice weekend,
Roland



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: image in table header overlapping table body -- possible ? [additional info]

2003-11-14 Thread Andreas L. Delmelle
 -Original Message-
 From: Roland Schroth [mailto:[EMAIL PROTECTED]


  -Original Message-
  From: Roland Neilands [mailto:[EMAIL PROTECTED]
 
  Roland,
 
  Use nested tables:

 That is what i tried yesterday, too. Thanks anyway.
 It's a solution to get the image in the first header of the table. But i
 still end up with the problem having it repeated after a page break.

Aaah... you *don't* need the image repeated across pages.

 The text header will be repeated as there is data in its table-body being
 continued after the page break. But there is no data in the
 table-body that

So, the image would actually belong to the table-body, and only the text
belongs to table-header (? correct?).
In that case my proposal could work, if it were not for the complication
described below.

 There occur line breaks in the rows (mostly generated within FOP caused by
 hyphenation), that i cannot calculate that easy. Therefore i cannot set a
 fixed row height and i do not know how many rows there will be on
 a page. I
 tried to calculate these linebreaks according to the amount of text in the
 fields but that's quite dirty (and not completely functioning at all ...)


Very dirty indeed... Imagine having to deal with a situation like this and
having to base your calculations on the metrics of the particular font being
used. (for fixed-width fonts this would be a bit less complicated since you
can just take the number of chars and multiply that by the charwidth).

 I think i will try to get some other things working first and come back to
 this one next week. Sometimes a weekend of doing nothing helps more than
 days of thinking ;-)


Very wise indeed!

Cheerz,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: image in table header overlapping table body -- possible ? [additional info]

2003-11-14 Thread Roland Schroth
   -Original Message-
   From: Roland Neilands [mailto:[EMAIL PROTECTED]
  
   Roland,
  
   Use nested tables:
 
  That is what i tried yesterday, too. Thanks anyway.
  It's a solution to get the image in the first header of the table. But i
  still end up with the problem having it repeated after a page break.

 Aaah... you *don't* need the image repeated across pages.

Ooops ... no sorry. One of these situations, my lack of practice with the
english language shows up.

I  *absolutely need*  it to be repeated.

Thanks again,
Roland



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



image in table header overlapping table body -- possible ?

2003-11-13 Thread Roland Schroth
Hello, out there ;-)

I need to build a table with a header line containing an image and a single
line of text. The problem is the image beeing to high to fit into the header
line which causes the header line to be resized vertically to match the
height of the image.

But i need the image to overflow the bottom of the header line (leaving its
height unchanged) so that it flows right into the body area. The problem is
that the overflow property isn't supported yet and a number-rows-spanned
does not seem to work here because header and body rows obviously cannot be
mixed.


I try to draw what i want to get (view with fixed-width font):



xsl-fo-area   /  in PDF it should look like that
__/
  /
  /
  /  +-+
table-header  /  | |   Some header text ...
  /  | header- |
  /  |  image  |   first row of table-body
  /  | |   second row of table-body
table-body/  +-+   third row of table-body
  /  .
  /  .
  /  .
  /  .
  /


(i hope that makes my problem clear)


As i generate the fo code and the PDF at runtime from different data in a
database, there may occur page breaks cutting the table into several pieces
and the header absolutely has to appear above each piece.
I also tried to use position=relative with the top and left properties set
but did not get it working although i am sure this should work with the
actual version. Mabe i just don't see the forest for the trees ...

Does anyone have an idea of how to achieve this?
I would really appreciate any hint.

Thanks in advance,
Roland



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: image in table header overlapping table body -- possible ?

2003-11-13 Thread Andreas L. Delmelle
 -Original Message-
 From: Roland Schroth

 But i need the image to overflow the bottom of the header line
 (leaving its
 height unchanged) so that it flows right into the body area. The
 problem is
 that the overflow property isn't supported yet and a number-rows-spanned
 does not seem to work here because header and body rows obviously
 cannot be
 mixed.


Try the following (for example):

in the simple-page-master, set the margin-top for the region body to the
height of the one line containing 'Some Header Text' --depending on the
font-size of the text, of course.
Then set the height of the region-before to be greater than the margin-top
just defined (roughly equivalent to the height of the image).

This way your region-before will actually overlap the region-body by
(region-body-margin-top - region-before-height).

(This trick has often been advised as a workaround for adding watermarks, so
I guess the result would be that the header-image actually ends up being
overwritten by the content of the region-body --if any... So if you make
sure the first rows have no content at all in the first columns, this should
actually work.)


Hope this helps!

Greetz,

Andreas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: image in table header overlapping table body -- possible ? [additional info]

2003-11-13 Thread Roland Schroth
I think your idea could work if i had only one table starting at the top of
the page.

   But (sorry that i did not mention that) i have a sequence of tables of
   different lengths that therefore also may start in the middle of a page.
   There are tables being only a few rows long an others spanning 2 or 3
   pages. So i need something that will work for that case too.

Anyway, thanks for your quick response.

Roland

  But i need the image to overflow the bottom of the header line
  (leaving its
  height unchanged) so that it flows right into the body area. The
  problem is
  that the overflow property isn't supported yet and a number-rows-spanned
  does not seem to work here because header and body rows obviously
  cannot be
  mixed.
 

 Try the following (for example):

 in the simple-page-master, set the margin-top for the region body to the
 height of the one line containing 'Some Header Text' --depending on the
 font-size of the text, of course.
 Then set the height of the region-before to be greater than the margin-top
 just defined (roughly equivalent to the height of the image).

 This way your region-before will actually overlap the region-body by
 (region-body-margin-top - region-before-height).

 (This trick has often been advised as a workaround for adding watermarks,
so
 I guess the result would be that the header-image actually ends up being
 overwritten by the content of the region-body --if any... So if you make
 sure the first rows have no content at all in the first columns, this
should
 actually work.)



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Corner drawing (Was: Spurious space between table-header and table header.)

2003-07-01 Thread Jeremias Maerki

On 30.06.2003 14:32:30 jaccoud wrote:
 BTW: Jeremias, are the borders realy suposed to look like
 +--
 |
 |
 +---+--
 |   |
 |   |
 |   |
 
 ?
 
 Shouldn't it be like this:
 
 +--
 |\
 | \
 |  \
 |   +--
 |   |
 |   |
 |   |
 
 ?

I don't know. There are people around more knowledgable about the XSL-FO
specs who can probably answer that.

 The latter is used by CSS, and I could not find this specific topic in the
 FO spec.

Neither could I. But XSL-FO often refers to CSS. So maybe you're right.

 Is this a PDF limitation? I becomes important for thick borders of
 different colors, when trying to simulate a 3d-effect. ( or 3-deffect :-)

Not a PDF limitation. More an implementation detail. Something that
eventually needs to be fixed, maybe.

Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Corner drawing (Was: Spurious space between table-header and table header.)

2003-06-30 Thread jaccoud

Hmm. PDF specs do not matter here. If some FO construct can't be rendered
in PDF, it should be marked as so. I don't think this is the case with
table borders. It is just complicated per se. The gap seems to be a
miscalculation of the header height, because it is excatly the same width
as the top-border. As to defining only cell borders, it is of course
feasable, but you have to write separate templates for each cell -- I just
took the easier way to avoid needlessly complicating the XSLT. Knowing what
is going on, and what to avoid, there are multiple ways to get around the
bug.
As to the misalignment, it is a side-effect of the boerder-collapse. I
tried separate, as Jeremias sugested, and things got clearer.


BTW: Jeremias, are the borders realy suposed to look like
+--
|
|
+---+--
|   |
|   |
|   |

?

Shouldn't it be like this:

+--
|\
| \
|  \
|   +--
|   |
|   |
|   |

?

The latter is used by CSS, and I could not find this specific topic in the
FO spec. Is this a PDF limitation? I becomes important for thick borders of
different colors, when trying to simulate a 3d-effect. ( or 3-deffect :-)



=
Marcelo Jaccoud Amaral
mailto:jaccoud [at] petrobras.com.br
voice: +55 21 2534-3485
fax: +55 21 2534-1809
=
There are only 10 kinds of people in the world: those who understand binary
and those who don't.





  Andreas  

  DelmellePara: [EMAIL PROTECTED]
  
  [EMAIL PROTECTED]cc:   (cco: Marcelo Jaccoud 
Amaral/RJ/Petrobras) 
  dora.be Assunto:  FW: FW: Spurious space 
between table-header and table  
header. 

  2003-06-28 09:04  

  Favor responder a 

  fop-user  










- - - -Original Message-
From: Andreas Delmelle [mailto:[EMAIL PROTECTED]
Sent: zaterdag 28 juni 2003 0:30
To: [EMAIL PROTECTED]
Subject: RE: FW: Spurious space between table-header and table
header.


hey waddya know... tried this : removed the border defs from the
header  voila
no gap and no misalignment.

downside is u have to define the top  bottom borders for all cells
in
the row as a workaround ( 'till the row borders are implemented )

[added]
anyway, i would definitely use the table-header as an element
containing no border atts  leave these either in the table itself (
for outer borders) or the individual cells (in the absence of an
implementation for the row borders... and come to think of it :
what about column borders? - let's try ;-) )
just try to avoid, as much as possible, any borders that are
defined multiple times.
defining both left  right in the table (or the header) as well as
in the cells seems to 'push' the extent of the left  right borders
of the outer borders a little ( exactly half of the width
of the inner border if i'm correct; vaguely remember
reading sth about this in the pdf-filespec ).
the content area rectangles for table, body and header match
in width. defining border-top-* atts in table affects only the
header. defined in table-header border-top-width also affects
width of table-body, border-style of table-body is not explicitly
set though...
the content area rectangles of the cells are on the 'inside' -
but what's the inside of a border of zero width? -
of the table (either in the header or the body) which would
explain the mysterious gap  the misalignment in this way :

border-top-width from table or table-header is 'inherited' by
table-body, border-top-style however, is not.
= gap = border-top-width without -style :-)

border-left-width from table-cell pushes the outer
left border slightly, creating the misalignment that 'only' appears
in the upper row (actually it happens in the second as well, which
gets enlightened by adding some colour. if i am not mistaken,
the same process takes place between the individual cells
- - - try leaving some out, see what it does)
and why don't we see the same misalignment at the bottom?
because

RE: FW: Spurious space between table-header and table header.

2003-06-27 Thread jaccoud

oops. forgot the attachments.

(See attached file: header-body.fo)(See attached file: header-body.pdf)

=
Marcelo Jaccoud Amaral
mailto:jaccoud [at] petrobras.com.br
voice: +55 21 2534-3485
fax: +55 21 2534-1809
=
There are only 10 kinds of people in the world: those who understand binary
and those who don't.



header-body.fo
Description: Binary data


header-body.pdf
Description: Adobe PDF document
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Spurious space between table-header and table header.

2003-06-26 Thread jaccoud

Try processing the attached fo. Although there is no specification of space
between the header and body, somehow a ~1.25mm gap crawls its way in.

(See attached file: header-body.fo)

Or maybe I am missing something. I do that a lot :-/

=
Marcelo Jaccoud Amaral
mailto:jaccoud [at] petrobras.com.br
voice: +55 21 2534-3485
fax: +55 21 2534-1809
=
There are only 10 kinds of people in the world: those who understand binary
and those who don't.



I can't reproduce (FOP from branch CVS and 0.20.4). Can you please post
a small example?

On 26.06.2003 02:11:34 jaccoud wrote:
 I'm getting a unindetified space between my table-headers and their
 table-bodies. I managed to make them go away by setting the body
 space-before to a negative ammount, but I could not identify the source
of
 the space. I tried setting margin, padding and spaces to zero in both the
 header and the body but the space persisted. It appears only when I
define
 a border around my header. Anyone noticed something similar? (I'm using
 0.20.4)



Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






header-body.fo
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Spurious space between table-header and table header.

2003-06-26 Thread Jeremias Maerki
Hmm, looks like a bug. I'm sure Jörg knows all about it and I didn't pay
attention again. :-) Funny thing is that the gap between table-header
and table-body is exactly the width of the border-top-width. Change that
value and you change the gap.

Work-around:
- Remove the border-top-* on the table-header
- Add these border-top attributes to table instead.

I hope this helps.

On 26.06.2003 17:03:02 jaccoud wrote:
 
 Try processing the attached fo. Although there is no specification of space
 between the header and body, somehow a ~1.25mm gap crawls its way in.
 
 (See attached file: header-body.fo)
 
 Or maybe I am missing something. I do that a lot :-/


Jeremias Maerki


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Spurious space between table-header and table header.

2003-06-26 Thread Andreas Delmelle

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

my guess is this has sth to do with inheritance
top or bottom? both get doubled by them being defined
in table-header  table-row ( last one implicitly ? )

would try adding them to the row instead  leaving them out
of the table-header ( unless i really needed a header with
multiple rows )

greetz

ald

 -Original Message-
 From: Jeremias Maerki [mailto:[EMAIL PROTECTED]
 Sent: donderdag 26 juni 2003 20:28
 To: [EMAIL PROTECTED]
 Subject: Re: Spurious space between table-header and table header.


 Hmm, looks like a bug. I'm sure Jörg knows all about it and I
 didn't pay attention again. :-) Funny thing is that the gap between
 table-header and table-body is exactly the width of the
 border-top-width. Change that value and you change the gap.

 Work-around:
 - Remove the border-top-* on the table-header
 - Add these border-top attributes to table instead.

 I hope this helps.

 On 26.06.2003 17:03:02 jaccoud wrote:
 
  Try processing the attached fo. Although there is no
 specification of space
  between the header and body, somehow a ~1.25mm gap crawls its way
  in.
 
  (See attached file: header-body.fo)
 
  Or maybe I am missing something. I do that a lot :-/


 Jeremias Maerki


 
 - To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use http://www.pgp.com

iQA+AwUBPvs/UdBw/OvTa+XUEQK2yQCgqnMDiPOPz/n3rByMkZUXy+4oM1AAl18p
BB7BtB+JKh/ISf15B79W8Us=
=imTf
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: table-header - Currently only Table Rows are supported

2003-06-23 Thread Holk, David A
Very stupid error...I didn't consistently set the mode on my
apply-templates.

-Original Message-
From: Holk, David A [mailto:[EMAIL PROTECTED]
Sent: Monday, June 23, 2003 12:14 PM
To: '[EMAIL PROTECTED]'
Subject: fo:table-header -  Currently only Table Rows are supported 


When I try to load my table header dynamically using apply-templates, I get
the error below. The row/cell/block construct works fine if I enter the
table-headers manually in the stylesheet.

Any ideas or comments appreciated.

David 


[ERROR] org.apache.fop.apps.FOPException: Currently only Table Rows are
supported in table body, header and footer

FOP 0.20.4

###
fo:flow flow-name=xsl-region-body
fo:table
fo:table-column
column-width=73mm/
fo:table-column
column-width=15mm/
fo:table-column
column-width=24mm/
fo:table-column
column-width=24mm/
fo:table-column
column-width=24mm/
fo:table-column
column-width=24mm/
fo:table-column
column-width=24mm/
fo:table-column
column-width=24mm/
fo:table-column
column-width=24mm/
fo:table-column
column-width=24mm/
fo:table-column
column-width=24mm/
fo:table-header
xsl:apply-templates
mode=column-header/
/fo:table-header
fo:table-body

xsl:apply-templates/
/fo:table-body
/fo:table
/fo:flow

xsl:template match=body mode=column-header
xsl:apply-templates/
/xsl:template
xsl:template match=column-titles mode=column-header
fo:table-row
xsl:apply-templates/
/fo:table-row
/xsl:template
xsl:template match=title mode=column-header
fo:table-cell border-width=0.5mm
fo:block font-size=7pt font-weight=bold
xsl:value-of select=./
/fo:block
/fo:table-cell
/xsl:template
#

This works fine:

fo:table-header
fo:table-row

fo:table-cell border-width=0.5mm

fo:block font-size=7pt font-weight=bold
 Method Name
 /fo:block

/fo:table-cell

fo:table-cell border-width=0.5mm

fo:block font-size=7pt font-weight=bold
 Procedure
 /fo:block

/fo:table-cell

fo:table-cell border-width=0.5mm

fo:block font-size=7pt font-weight=bold
Attribute
 /fo:block

/fo:table-cell

fo:table-cell border-width=0.5mm

fo:block font-size=7pt font-weight=bold
Specification
 /fo:block

/fo:table-cell

fo:table-cell border-width=0.5mm

fo:block font-size=7pt font-weight=bold
1 Month
 /fo:block

/fo:table-cell

fo:table-cell border-width=0.5mm

fo:block font-size=7pt font-weight=bold
3 Months
 /fo:block

/fo:table-cell

fo:table-cell border-width=0.5mm

fo:block font-size=7pt font-weight=bold
1 Month
 /fo:block

/fo:table-cell

fo:table-cell border-width=0.5mm

fo:block font-size=7pt font-weight=bold
3 Months
 /fo:block

/fo:table-cell

fo:table-cell border-width=0.5mm

fo:block font-size=7pt font-weight=bold
1 Month
 /fo:block

/fo:table-cell

fo:table-cell border-width=0.5mm

fo:block font-size=7pt font-weight=bold
3 Months

table header on consecutive pages

2003-04-03 Thread Michael Gasperi
Hi,
I've a problem with table-header on consecutive pages, the table-header 
cell number two (with content some text 2) is not printed, but the 
member contents (see below) of this column is printed - any hints what 
I'm doing wrong? I do the following...

 snip
fo:layout-master-set
fo:simple-page-master master-name=simpleA4 page-height=29.7cm 
page-width=21cm margin-top=2cm margin-bottom=2cm margin-left=2cm 
margin-right=2cm
fo:region-before region-name=header/
fo:region-body region-name=tableheading/
fo:region-after region-name=footer/
/fo:simple-page-master
/fo:layout-master-set
 snip
fo:flow flow-name=tableheading
fo:block font-size=10pt space-before=2cm
!--  --
!-- table layout --
!--  --
fo:table table-omit-header-at-break=false
fo:table-column column-width=2cm/
fo:table-column column-width=12cm/
fo:table-column column-width=2cm/
fo:table-header
fo:table-row
fo:table-cell text-align=center border=0.5pt solid black
fo:blocksome text 1/fo:block
/fo:table-cell
fo:table-cell text-align=center border=0.5pt solid black
fo:blocksome text 2/fo:block
/fo:table-cell
fo:table-cell text-align=center border=0.5pt solid black
fo:blocksome text 3/fo:block
/fo:table-cell
/fo:table-row
/fo:table-header
fo:table-body
xsl:apply-templates select=member/
/fo:table-body
/fo:table
/fo:block
/fo:flow
--- snip

Thanks in advance and maybe you should know that I'm a beginner but I 
think you'll see this from my code!?

Michael Gasperi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: table header on consecutive pages

2003-04-03 Thread Clay Leeds
Michael,

I don't know if this'll help, but I recall seeing somewhere that borders
on cells are not supported at smaller than 1pt. I have tried this, and
found that PDF handles it differently (displays at .5pt) than AWT/print
(either ignores or draws 1pt). In any case that was with fop-0.20.4 and
I don't know if anything's changed for 0.20.5, 5rc2, etc.

BTW, you don't indicate important and relevant pieces of your case: your
platform (Win, Unix, Mac OS, etc.), version of FOP, version of JAVA.
These may be a factor.

Michael Gasperi wrote:
 Hi,
 
 I've a problem with table-header on consecutive pages, the table-header
 cell number two (with content some text 2) is not printed, but the
 member contents (see below) of this column is printed - any hints what
 I'm doing wrong? I do the following...
 
  snip
 fo:layout-master-set
 fo:simple-page-master master-name=simpleA4 page-height=29.7cm
 page-width=21cm margin-top=2cm margin-bottom=2cm margin-left=2cm
 margin-right=2cm
 fo:region-before region-name=header/
 fo:region-body region-name=tableheading/
 fo:region-after region-name=footer/
 /fo:simple-page-master
 /fo:layout-master-set
  snip
 fo:flow flow-name=tableheading
 fo:block font-size=10pt space-before=2cm
 !--  --
 !-- table layout --
 !--  --
 fo:table table-omit-header-at-break=false
 fo:table-column column-width=2cm/
 fo:table-column column-width=12cm/
 fo:table-column column-width=2cm/
 fo:table-header
 fo:table-row
 fo:table-cell text-align=center border=0.5pt solid black
 fo:blocksome text 1/fo:block
 /fo:table-cell
 fo:table-cell text-align=center border=0.5pt solid black
 fo:blocksome text 2/fo:block
 /fo:table-cell
 fo:table-cell text-align=center border=0.5pt solid black
 fo:blocksome text 3/fo:block
 /fo:table-cell
 /fo:table-row
 /fo:table-header
 fo:table-body
 xsl:apply-templates select=member/
 /fo:table-body
 /fo:table
 /fo:block
 /fo:flow
 --- snip
 
 Thanks in advance and maybe you should know that I'm a beginner but I
 think you'll see this from my code!?
 
 Michael Gasperi


-- 
Clay Leeds - [EMAIL PROTECTED]
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



spanning rows create a page with just the table header

2003-04-03 Thread Louis . Masters
I ran into the following issue:  If my spanned rows stay on one page, they
work as desired.  If the data in the spanned rows is very long and it
forces the rows onto a new page, I get the correct two pages, BUT they are
preceded by a page that just has the table headers.  For example:

Working Scenario (single page, A  D are spanned):

Page 1
|Head1|Head2  |Head3  |Head4|
|A|B  |C  |D|
| |B  |C  | |
| |B  |C  | |
| |B  |C  | |
| |B  |C  | |
| |B  |C  | |


Not-working scenario (should be two pages, A  D are spanned):

Page 1
|Head1|Head2  |Head3  |Head4|

Page 2
|Head1|Head2  |Head3  |Head4|
|A|B  |C  |D|
| |B  |C  | |
| |B  |C  | |
| |B  |C  | |
| |B  |C  | |
| |B  |C  | |

Page 3
|Head1|Head2  |Head3  |Head4|
| |B  |C  | |
| |B  |C  | |

FOP 0.20.3 jdk 1.4

Is this fixed in a later version of FOP?

-Lou




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: spanning rows create a page with just the table header

2003-04-03 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
FOP 0.20.3 jdk 1.4
Is this fixed in a later version of FOP?
Just try it.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


problem with table header

2003-01-07 Thread Mihael Knezevic
hi,

i got a little problem with table rendering.

my problem:

i have a table with a header row. as i dynamically generate the content
of the headers i don't know how long the text for the header will be. so
i sometimes get a very long header, which breaks into a second header
row. now i would like to generally make the header 2 rows wide. how do i
do this? i tried the attribute number-rows-spanned but it didn't work
(could also be my mistake). is it supported by fop?

if it is supported, could someone give a small example?

thanx in advance.

mk

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with table header

2003-01-07 Thread J.Pietschmann
Mihael Knezevic wrote:
i have a table with a header row. as i dynamically generate the content
of the headers i don't know how long the text for the header will be. so
i sometimes get a very long header, which breaks into a second header
row. now i would like to generally make the header 2 rows wide. how do i
do this? i tried the attribute number-rows-spanned but it didn't work
(could also be my mistake). is it supported by fop?
I don't understand. Table rows have to be put into the table
explicitely, therefore a long header (whatever you mean with
this) will never break into a second header row. I guess
you got a header table cell with two lines, which is something
different.
Row spanning is implemented, but you can't span more than one
table row if there is only one.
Can you reformulate your question and perhaps show a small
snippet of your FO code demonstrating your current approach?
J.Pietschmann

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: problem with table header

2003-01-07 Thread Mihael Knezevic
sorry for my poor explanation of my problem.

you are right with your assumption that i set explicitly the header and
that it won't break into a second row but in a second line in the same
cell. i wasn't that clear to me 'till now.

but the problem remains: i got different table header height because it
sometimes needs one and sometimes two lines for the header.

is there a possibility to say that i want the header (table cell from
header) as high as two lines (relativ or absolut value) so that there
all will look alike?

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 07, 2003 2:08 PM
To: [EMAIL PROTECTED]
Subject: Re: problem with table header


Mihael Knezevic wrote:
 i have a table with a header row. as i dynamically generate the 
 content of the headers i don't know how long the text for the header 
 will be. so i sometimes get a very long header, which breaks into a 
 second header row. now i would like to generally make the header 2 
 rows wide. how do i do this? i tried the attribute number-rows-spanned

 but it didn't work (could also be my mistake). is it supported by fop?

I don't understand. Table rows have to be put into the table
explicitely, therefore a long header (whatever you mean with
this) will never break into a second header row. I guess
you got a header table cell with two lines, which is something
different. Row spanning is implemented, but you can't span more than one
table row if there is only one. Can you reformulate your question and
perhaps show a small snippet of your FO code demonstrating your current
approach?

J.Pietschmann



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: problem with table header

2003-01-07 Thread J.Pietschmann
Mihael Knezevic wrote:
but the problem remains: i got different table header height because it
sometimes needs one and sometimes two lines for the header.
is there a possibility to say that i want the header (table cell from
header) as high as two lines (relativ or absolut value) so that there
all will look alike?
You can set the height property on the fo:table-row in the header.
As a rule of thumb, use twice the font size, for example
height=2*12pt. You can alos use one of the property functions
to retrive the current font size, look it up in the XSL spec.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: problem with table header

2003-01-07 Thread Mihael Knezevic
thanx. i'll try it.

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 07, 2003 3:11 PM
To: [EMAIL PROTECTED]
Subject: Re: problem with table header


Mihael Knezevic wrote:
 but the problem remains: i got different table header height because 
 it sometimes needs one and sometimes two lines for the header.
 
 is there a possibility to say that i want the header (table cell from
 header) as high as two lines (relativ or absolut value) so that there 
 all will look alike?

You can set the height property on the fo:table-row in the header. As a
rule of thumb, use twice the font size, for example height=2*12pt. You
can alos use one of the property functions to retrive the current font
size, look it up in the XSL spec.

J.Pietschmann


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



table-header or alter

2002-12-05 Thread ANIL B G
Hi,
Iam new to fo. Iam refering this site for fo tabgs and examples.
http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html
when iam trying to use the table-header, it says not supported.
could u please someone pass me the example of fo file having table with 
table-header or alternative to table-header.

Thanks in advance.
Regards,
Anil



From: dongjiang tang [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: how can I get the double border work?
Date: Thu, 5 Dec 2002 15:03:27 -0500
thank you so much for the help!!
dtang
- Original Message -
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, December 05, 2002 12:47 PM
Subject: Re: how can I get the double border work?
 dongjiang tang wrote:
  How about underline? I know I can get a single underline by using
fo:inline
  text-decoration=underline,  is there anything to get a double
underline?

 There is no way to specify double underline. As usual, this has to be
 substituted with a graphic. This is hard to do in general, but there are
 tricks for several special cases. If you want to double undderline a
single

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: table-header or alter

2002-12-05 Thread J.Pietschmann
ANIL B G wrote:
Hi,
Iam new to fo. Iam refering this site for fo tabgs and examples.
http://www.ibiblio.org/xml/books/bible2/chapters/ch18.html
when iam trying to use the table-header, it says not supported.
could u please someone pass me the example of fo file having table with 
table-header or alternative to table-header.
Table headers are supported by FOP. You probably got the problem that
fo:table-and-caption is not supported. Just use plain fo:table. Look
into the FOP examples for some sample code.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Table header and footer and page break

2002-11-20 Thread Philippe Chaléat
I asked a similar question some days ago... But not nobody answered on this
particular point.

Say I want it to have this kind of printing (needed for example for invoice
printing) :

  line1 a
  line2 b
  line3 c
--
  Last line in this page is line3

- PAGE BREAK -

  Last line in previous page was line3
--
  line4 d
  line5 e
  line6 f

Is there an acceptable solution to this using XSL-FO ?

Thanks Philippe



Re: Table header and footer and page break

2002-11-20 Thread Oleg Tkachenko
Philippe Chaléat wrote:
I asked a similar question some days ago... But not nobody answered on this
particular point.
Look back to the archive, you've got 2 negative answers.
Say I want it to have this kind of printing (needed for example for invoice
printing) :
  line1 a
  line2 b
  line3 c
--
  Last line in this page is line3
- PAGE BREAK -
  Last line in previous page was line3
--
  line4 d
  line5 e
  line6 f
Is there an acceptable solution to this using XSL-FO ?
If you don't mind Last line... text to be in region-after, not in table 
footer as you asked before, you can do it using markers. Take a look at 
docs/examples/markers folder within fop distribution for example of usage.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: table-header and retrieve-marker

2002-11-19 Thread Keiron Liddle

Retrieve marker is only allowed in static regions, so no you cannot use
it in a table header or footer to do that.

On Tue, 2002-11-19 at 09:30, Philippe Chaléat wrote:
 Hello,
 
 Is there a way to use marker (retrieve-marker) in table header or footer ?
 
 For example, how I can achieve this with a table in region-body :
 
   line1 a
   line2 b
   line3 c
 --
   Last line in this page is line3
 
 - page break- 
 
   Last line in previous page was line3
 --
   line4 d
   line5 e
   line6 f
   
 Philippe
 
 




Re: table-header and retrieve-marker

2002-11-19 Thread Oleg Tkachenko
Philippe Chaléat wrote:
Is there a way to use marker (retrieve-marker) in table header or footer ?
No, An fo:retrieve-marker is only permitted as the descendant of an 
fo:static-content. (c) the spec

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: Table header.

2002-03-08 Thread Chuck Paussa
Olivier,
The quick answer is No. But there are people wanting to write an 
extension function to do this.

What you can do is return the page number that the table sits on within 
the page sequence in which the table sits. So, if you can do without 
page numbers on your output, you can create a new page sequence for each 
table, set the initial-page-number = 1, and then return the page number 
(Code attached)

Chuck Paussa
Olivier Rossel wrote:
Is it possible to have when you are using a table header, a variable 
that tells how many times this header has already been
duplicated, because of page break.
Si you can have a header that displays on the first page:
Table important
and on the second page:
Table important (2)
and on the third page
Table important (3)


?xml version=1.0 encoding=UTF-8?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
	fo:layout-master-set
		fo:simple-page-master master-name=simplet page-width=200mm page-height=20mm
			fo:region-before extent=10mm/
			fo:region-body margin-top=10mm/
		/fo:simple-page-master
	/fo:layout-master-set
	fo:page-sequence master-name=simplet initial-page-number=1
		fo:static-content flow-name=xsl-region-before
			fo:table
fo:table-column column-width=3in/
fo:table-column column-width=3in/
fo:table-body
	fo:table-row
		fo:table-cell number-columns-spanned=2
			fo:block
			Table 2: Page fo:page-number/ of fo:page-number-citation ref-id=terminator1/
			/fo:block
		/fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell fo:blockHeader 1/fo:block /fo:table-cell
		fo:table-cell fo:blockHeader 2/fo:block /fo:table-cell
	/fo:table-row
/fo:table-body
			/fo:table
		/fo:static-content
		fo:flow flow-name=xsl-region-body
			fo:table
fo:table-column column-width=3in/
fo:table-column column-width=3in/
fo:table-body
	fo:table-row
		fo:table-cell fo:blockColumn 1/fo:block /fo:table-cell
		fo:table-cell fo:blockColumn 2/fo:block /fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell fo:blockColumn 1/fo:block /fo:table-cell
		fo:table-cell fo:blockColumn 2/fo:block /fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell fo:blockColumn 1/fo:block /fo:table-cell
		fo:table-cell fo:blockColumn 2/fo:block /fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell fo:blockColumn 1/fo:block /fo:table-cell
		fo:table-cell fo:blockColumn 2/fo:block /fo:table-cell
	/fo:table-row
/fo:table-body
			/fo:table
			fo:block id=terminator1/
		/fo:flow
	/fo:page-sequence
	fo:page-sequence master-name=simplet initial-page-number=1
		fo:static-content flow-name=xsl-region-before
			fo:table
fo:table-column column-width=3in/
fo:table-column column-width=3in/
fo:table-body
	fo:table-row
		fo:table-cell number-columns-spanned=2
			fo:block
			Table 2: Page fo:page-number/ of fo:page-number-citation ref-id=terminator2/
			/fo:block
		/fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell fo:blockHeader 1/fo:block /fo:table-cell
		fo:table-cell fo:blockHeader 2/fo:block /fo:table-cell
	/fo:table-row
/fo:table-body
			/fo:table
		/fo:static-content
		fo:flow flow-name=xsl-region-body
			fo:table
fo:table-column column-width=3in/
fo:table-column column-width=3in/
fo:table-body
	fo:table-row
		fo:table-cell fo:blockColumn 1/fo:block /fo:table-cell
		fo:table-cell fo:blockColumn 2/fo:block /fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell fo:blockColumn 1/fo:block /fo:table-cell
		fo:table-cell fo:blockColumn 2/fo:block /fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell fo:blockColumn 1/fo:block /fo:table-cell
		fo:table-cell fo:blockColumn 2/fo:block /fo:table-cell
	/fo:table-row
	fo:table-row
		fo:table-cell fo:blockColumn 1/fo:block /fo:table-cell
		fo:table-cell fo:blockColumn 2/fo:block /fo:table-cell
	/fo:table-row
/fo:table-body
			/fo:table
			fo:block id=terminator2/
		/fo:flow
	/fo:page-sequence
/fo:root