Re: Positioning The Header

2005-01-18 Thread Luke Shannon
That worked. Thank you.

- Original Message - 
From: The Web Maestro [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 17, 2005 6:38 PM
Subject: Re: Positioning The Header


 On Jan 17, 2005, at 2:28 PM, Luke Shannon wrote:
  Hello;
 
  I am playing with the extent values, space-after, etc. However I can't 
  seem
  to space the region-before and region-body out enough to prevent the 
  header
  image from over lapping the region-body content.
 
  Below is my code. I would love any tips anyone might have.
 
  Note: The image height is 2.47cm. Template draw_contents writes out the
  body.
 
 Wouldn't it just be:
 
 [..]
 fo:region-before extent=2.47cm/
 fo:region-body margin-top=2.47cm/
 [..]
 
 Web Maestro Clay
 -- 
 [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/
 My religion is simple. My religion is kindness.
 - HH The 14th Dalai Lama of Tibet
 
 
 -
 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]



Header

2005-01-17 Thread Luke Shannon
Hello;

Should this not give me an image before the body area?

fo:static-content flow-name=xsl-region-before
fo:block
fo:external-graphic
src=url('//usr/tomcat/ac/images/topbanner/mainlogo.gif')/
/fo:block
/fo:static-content

Thanks,
Luke



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



Re: Header

2005-01-17 Thread The Web Maestro
Probably, assuming there is an image at that location. However for that 
to work, you probably need to give fo:region-before/fo:region-body 
attributes (extent= / margin-top= respectively) greater than or 
equal to the fo:external-graphic.

BTW, I notice that there are two '//' in the @src. Is that intended?
Web Maestro Clay
On Jan 17, 2005, at 12:15 PM, Luke Shannon wrote:
Hello;
Should this not give me an image before the body area?
fo:static-content flow-name=xsl-region-before
fo:block
fo:external-graphic
src=url('//usr/tomcat/ac/images/topbanner/mainlogo.gif')/
/fo:block
/fo:static-content
Thanks,
Luke
Web Maestro Clay
--
[EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Header

2005-01-17 Thread Luke Shannon
Yes. I want to path to image started at the root directory (UNIX
environment).

There is an image at that location so I will try playing with attributes you
mentioned because right now the image is not showing up.

Thanks,

Luke

- Original Message - 
From: The Web Maestro [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 17, 2005 3:17 PM
Subject: Re: Header


 Probably, assuming there is an image at that location. However for that
 to work, you probably need to give fo:region-before/fo:region-body
 attributes (extent= / margin-top= respectively) greater than or
 equal to the fo:external-graphic.

 BTW, I notice that there are two '//' in the @src. Is that intended?

 Web Maestro Clay

 On Jan 17, 2005, at 12:15 PM, Luke Shannon wrote:
  Hello;
 
  Should this not give me an image before the body area?
 
  fo:static-content flow-name=xsl-region-before
  fo:block
  fo:external-graphic
  src=url('//usr/tomcat/ac/images/topbanner/mainlogo.gif')/
  /fo:block
  /fo:static-content
 
  Thanks,
  Luke

 Web Maestro Clay
 -- 
 [EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/
 My religion is simple. My religion is kindness.
 - HH The 14th Dalai Lama of Tibet


 -
 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: Header

2005-01-17 Thread Andreas L. Delmelle
 -Original Message-
 From: The Web Maestro [mailto:[EMAIL PROTECTED]
 

Hi Luke / Clay,

 Probably, assuming there is an image at that location. 

Look at it this way: what location? (see below)

  fo:external-graphic
  src=url('//usr/tomcat/ac/images/topbanner/mainlogo.gif')/

http:// ? ftp:// ? file:// ?


Greetz,

Andreas


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



Re: Header

2005-01-17 Thread Luke Shannon
You are correct I was missing the file:// .

Thanks,

Luke

- Original Message - 
From: Andreas L. Delmelle [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 17, 2005 3:37 PM
Subject: RE: Header


  -Original Message-
  From: The Web Maestro [mailto:[EMAIL PROTECTED]
  
 
 Hi Luke / Clay,
 
  Probably, assuming there is an image at that location. 
 
 Look at it this way: what location? (see below)
 
   fo:external-graphic
   src=url('//usr/tomcat/ac/images/topbanner/mainlogo.gif')/
 
 http:// ? ftp:// ? file:// ?
 
 
 Greetz,
 
 Andreas
 
 
 -
 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]



Positioning The Header

2005-01-17 Thread Luke Shannon
Hello;

I am playing with the extent values, space-after, etc. However I can't seem
to space the region-before and region-body out enough to prevent the header
image from over lapping the region-body content.

Below is my code. I would love any tips anyone might have.

Note: The image height is 2.47cm. Template draw_contents writes out the
body.

Thanks,

Luke

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
!-- configure the page attributes --
fo:layout-master-set
fo:simple-page-master master-name=simple page-height=29.7cm
page-width=21cm margin-top=1cm margin-bottom=2cm margin-left=2.5cm
margin-right=2.5cm
fo:region-before extent=3.5cm/
fo:region-body margin-top=2cm/
fo:region-after extent=1.5cm/
/fo:simple-page-master
/fo:layout-master-set
!-- ouput the content --
fo:page-sequence master-reference=simple
fo:static-content flow-name=xsl-region-before
fo:block
fo:external-graphic
src=url(file:///usr/tomcat/ac/images/topbanner/mainlogo.gif)
space-after=1cm/
/fo:block
/fo:static-content
xsl:call-template name=draw_contents/
/fo:page-sequence
/fo:root



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



Re: Positioning The Header

2005-01-17 Thread The Web Maestro
On Jan 17, 2005, at 2:28 PM, Luke Shannon wrote:
Hello;
I am playing with the extent values, space-after, etc. However I can't 
seem
to space the region-before and region-body out enough to prevent the 
header
image from over lapping the region-body content.

Below is my code. I would love any tips anyone might have.
Note: The image height is 2.47cm. Template draw_contents writes out the
body.
Wouldn't it just be:
[..]
fo:region-before extent=2.47cm/
fo:region-body margin-top=2.47cm/
[..]
Web Maestro Clay
--
[EMAIL PROTECTED] - http://homepage.mac.com/webmaestro/
My religion is simple. My religion is kindness.
- HH The 14th Dalai Lama of Tibet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Header Help

2004-11-22 Thread rohit . rastogi

Hi,
Please help me out in fixing this header problem. I am trying to create an
xsl for XHTML with an extra header tag in it. This represent the header. I
want the header in the first page only .Rest of the pages should not
contain the header. I have created the following style sheet. But it does
not seems to work .Please help me out.
Thanks and Regards
Rohit

?xml version=1.0 encoding=UTF-8?
xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo
=http://www.w3.org/1999/XSL/Format; xmlns:html
=http://www.w3.org/1999/xhtml; version=1.0
  xsl:output indent=yes/
  !-- # --
  xsl:template match=/
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
  fo:layout-master-set
!-- MAJOR CHANGES START --
  fo:simple-page-master master-name
=firstpage page-height=11in page-width=8.5in margin-top=1.25in
margin-bottom=1.0in margin-left=1.25in margin-right=1.25in
fo:region-before region-name
=firstheader extent=2.0in margin-left=0.5in margin-right=0.5in/
fo:region-after extent=2.0in
margin-left=0.5in margin-right=0.5in/
fo:region-body margin-top=2.5cm
margin-bottom=2.5cm /
  /fo:simple-page-master
  fo:simple-page-master master-name
=restpages page-height=11in page-width=8.5in margin-top=1.25in
margin-bottom=1.0in margin-left=1.25in margin-right=1.25in
fo:region-before extent=2.0in
margin-left=0.5in margin-right=0.5in/
fo:region-after extent=2.0in
margin-left=0.5in margin-right=0.5in/
fo:region-body margin-top=2.5cm
margin-bottom=2.5cm /
  /fo:simple-page-master
!-- MAJOR CHANGES END --
  fo:page-sequence-master master-name=all
  fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference page-position
=first
  master-reference=firstpage/
fo:conditional-page-master-reference page-position
=rest
master-reference=restpages/
  /fo:repeatable-page-master-alternatives
  /fo:page-sequence-master

  /fo:layout-master-set
  fo:page-sequence master-reference=firstpage

xsl:apply-templates/
  /fo:page-sequence
  fo:page-sequence master-reference=restpages

xsl:apply-templates/
  /fo:page-sequence
/fo:root
  /xsl:template
  !-- ##- title - --
  xsl:template match=html:title

  /xsl:template
  !-- #- body - --
  !-- MAJOR CHANGES START --
  xsl:template match=html:body

!-- The following static content renders the html:header tag
within every pdf page --
fo:static-content flow-name=firstheader
fo:block font-size={fontsize}pt font-family
=serif line-height=10pt color=red
xsl:apply-templates select=html:header/
/fo:block
/fo:static-content


!-- The following static content renders the html:footer tag
within every pdf page --
fo:static-content flow-name=xsl-region-after
  fo:block text-align=center font-size={fontsize}pt
font-family=serif line-height=10pt color=red
xsl:apply-templates select=html:footer/
  /fo:block
  !-- This block renders the page number --
  fo:block text-align=right font-size=10pt font-family
=serif
Page fo:page-number/
  /fo:block
/fo:static-content


!-- This flow applies all tenplates available to the body tags
content --
!-- Attention: editor content must always be wraped e.g. by a
p tag. plaintext in source view causes a fop error --
fo:flow flow-name=xsl-region-body font-family=Times
font-size=12pt
  xsl:apply-templates select=html:body-content/
/fo:flow

  /xsl:template


  !-- MAJOR CHANGES END --
  !-- #- paragraph - --
  xsl:template match=html:p
xsl:element name=fo:block
  xsl:attribute name
=space-before.minimum10pt/xsl:attribute
  xsl:attribute name
=space-before.maximum16pt/xsl:attribute
  xsl:attribute name
=space-before.optimum14pt/xsl:attribute
  xsl:attribute name
=space-after.minimum10pt/xsl:attribute

different header on first page

2004-10-01 Thread Robert Guggenberger

Hi all,


i got pages with a JPG on the top (in the region before)

now this JPG-header should only be visible on the first page

there is no special content on the first page ( a must not for a page break - otherwise i would do it with 2 page sequences, flows)


i found how to use differnt layouts (margins ...) with different page-masters.

But i havnt found a way how to show, in my case a LOGO, on the first page and not on the others

regards 

robert

Re: different header on first page

2004-10-01 Thread Chris Bowditch
Robert Guggenberger wrote:
i got pages with a JPG on the top (in the region before)
now this JPG-header should only be visible on the first page
there is no special content on the first page ( a must not for a page 
break - otherwise i would do it with 2 page sequences, flows)

i found how to use differnt layouts (margins ...) with different 
page-masters.

But i havnt found  a way how to show, in my case a LOGO, on the first 
page and not on the others
this is straight forward. create a layout-set something like:
fo:layout-set
fo:simple-page-master master-name=firstpage
fo:region-body margin-top=30mm/
fo:region-before region-name=firstheader extent=30mm/
/fo:simple-page-master
fo:simple-page-master master-name=otherpages
fo:region-body/
/fo:simple-page-master
fo:page-sequence-master name=all
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference master-reference=firstpage 
page-position=firstpage/
fo:conditional-page-master-reference master-reference=otherpages 
page-position=rest/
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master
/fo:layout-set

then the page-sequence will be:
fo:page-sequence master-reference=all
fo:static-content flow-name=firstheader
!-- put content for first header here --
/fo:static-content
fo:flow flow-name=xsl-region-body
!-- put your regular flowing content here --
/fo:flow
/fo:page-sequence
I hope this is clear,
Chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


fo:table-header - between 2 pages

2004-08-16 Thread Philippe PITHON








Hello!



I have a problem with fo:table-header :



the contents of the fo:table-header cannot be between
2 pages

(If there are many lines in the fo:table-header)



For example if a table (and fo:table-header) must
start in the medium of the page

And FOP thinks that the contents of the fo:table-header
will not have enough place, there will be a page break and the fo:table-header will
be written at the beginning of the next page



its normal ?





Philippe
Pithon

mailto:[EMAIL PROTECTED]










Re: fo:table-header - between 2 pages

2004-08-16 Thread Chris Bowditch
Philippe PITHON wrote:
snip/
For example if a table (and fo:table-header) must start in the medium of 
the page

And FOP thinks that the contents of the fo:table-header will not have 
enough place, there will be a page break and the fo:table-header will be 
written at the beginning of the next page

 

its normal ?
Sounds normal to me. Would you prefer the header to be split across pages? 
That wouldnt make sense to me at all?

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


RE: Anyone produce RTF output with separate header, body, and/or footer?

2004-07-13 Thread Peter Herweg
Hi,

this issue is fixed.
It was caused by the latest changes to StaticContent.java 7 days ago.

Bye
Peter Herweg

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of
 Christopher R Newman
 Sent: Monday, July 12, 2004 8:17 PM
 To: fop-user
 Subject: Anyone produce RTF output with separate header, body, and/or
 footer?
 
 
 Hello all,
 I'm using the latest dev version of FOP so I can generate RTF 
 output.  Has anyone been able to create headers/footers without any 
 problems?  The flow body always seems to get sucked into whichever 
 static-content I define last.  If not, anyone know of ways to work 
 around it?  Is there a way to create fixed blocks at the bottom of every 
 page?
 
 Chris
 
 
 -
 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]



Anyone produce RTF output with separate header, body, and/or footer?

2004-07-12 Thread Christopher R Newman
Hello all,
   I'm using the latest dev version of FOP so I can generate RTF 
output.  Has anyone been able to create headers/footers without any 
problems?  The flow body always seems to get sucked into whichever 
static-content I define last.  If not, anyone know of ways to work 
around it?  Is there a way to create fixed blocks at the bottom of every 
page?

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


RE: Anyone produce RTF output with separate header, body, and/or footer?

2004-07-12 Thread Peter Herweg
Hi,

yes i can confirm this.
I will fix this within the next few days - as soon as possible.

Thank you for reporting!

Peter Herweg

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Behalf Of
 Christopher R Newman
 Sent: Monday, July 12, 2004 8:17 PM
 To: fop-user
 Subject: Anyone produce RTF output with separate header, body, and/or
 footer?
 
 
 Hello all,
 I'm using the latest dev version of FOP so I can generate RTF 
 output.  Has anyone been able to create headers/footers without any 
 problems?  The flow body always seems to get sucked into whichever 
 static-content I define last.  If not, anyone know of ways to work 
 around it?  Is there a way to create fixed blocks at the bottom of every 
 page?
 
 Chris
 
 
 -
 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 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]



how to display something like Page 1 of 5 in the PDF page header

2004-04-07 Thread Biying Huang
Hi,
I use FOP to generate a PDF from a XML file and a SXLT file. I am trying 
to display something like Page 1 of 5 in the PDF page header.
.
I found a suggestion from 
http://www.dpawson.co.uk/xsl/sect3/N8703.html#d9294e31, but I don't 
understand. It says:

fo:page-number-citation ref-id=endofdoc/ will produce it, if the 
last thing in your document is something with 'id=endofdoc', e.g. fo 
block id=endofdoc/fo:block

Given my test data and xlt following, can anyone please help me to 
produce the Page 1 of 5 ?  Thank you in advance.

R,
Biying
==data.xml===
AttachmentList
  Attachment showImage=true
  filenameImage5445.jpg/filename
  infoimage information/info
/Attachment
Attachment showImage=false
  filenameImage5446.jpg/filename
  infoimage information/info
/Attachment
Attachment showImage=true
  filenameImage5454.jpg/filename
  infoimage information/info
/Attachment
 /AttachmentList
=templates.xsl
 ?xml version=1.0 encoding=iso-8859-1?
 xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xmlns=http://www.w3.org/1999/XSL/Format;
  version=1.0
 xsl:output indent=yes/
 xsl:template match=/
 root font-family=Times font-size=20pt
layout-master-set
  simple-page-master master-name=frame
  page-height=210mm page-width=297mm
  margin-top=1cm margin-bottom=1cm
  margin-left=1cm margin-right=1cm
region-body region-name=frame-body/
  /simple-page-master
/layout-master-set
fo:page-sequence language=en master-reference=all format=1  
- #   fo:static-content flow-name=xsl-region-before
xsl:call-template name=header /
/fo:static-content
fo:flow flow-name=xsl-region-body
 xsl:apply-templates select=AttachmentList /
/fo:flow
/fo:page-sequence

 /root
 /xsl:template
 xsl:template name=header
  !-- How do I display Page 1 of 1 here ??? --
  fo:blockPage/fo:block
 /xsl:template
xsl:template match=AttachmentList
fo:blockTest of table columns/fo:block
fo:table border=solid
  fo:table-body
xsl:apply-templates select=AttachmentList/
  /fo:table-body
/fo:table
  /xsl:template
 xsl:template match=Attachment
  fo:table-row
fo:table-cell border=solid
   fo:block text-align=center
   fo:external-graphicxsl:attribute 
name=srcxsl:value-of select=filename 
//xsl:attribute/fo:external-graphic
/fo:block
/fo:table-cell

fo:table-cell border=solid
  fo:blockxsl:value-of select=info//block
/fo:table-cell
  /fo:table-row
 /xsl:template
/xsl:stylesheet
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: how to display something like Page 1 of 5 in the PDF page header

2004-04-07 Thread Clay Leeds
See info below next to the two !-- HERE -- items.
Have a nice day!
Web Maestro Clay
p.s. I assume your actual pages have proper syntax (I didn't check 
anything--just added the code in the proper spots).

==data.xml===
AttachmentList
  Attachment showImage=true
  filenameImage5445.jpg/filename
  infoimage information/info
/Attachment
Attachment showImage=false
  filenameImage5446.jpg/filename
  infoimage information/info
/Attachment
Attachment showImage=true
  filenameImage5454.jpg/filename
  infoimage information/info
/Attachment
 /AttachmentList
=templates.xsl
 ?xml version=1.0 encoding=iso-8859-1?
 xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xmlns=http://www.w3.org/1999/XSL/Format;
  version=1.0
 xsl:output indent=yes/
 xsl:template match=/
 root font-family=Times font-size=20pt
layout-master-set
  simple-page-master master-name=frame
  page-height=210mm page-width=297mm
  margin-top=1cm margin-bottom=1cm
  margin-left=1cm margin-right=1cm
region-body region-name=frame-body/
  /simple-page-master
/layout-master-set
fo:page-sequence language=en master-reference=all format=1  
- #   fo:static-content flow-name=xsl-region-before
xsl:call-template name=header /
/fo:static-content
fo:flow flow-name=xsl-region-body
 xsl:apply-templates select=AttachmentList /
!-- HERE -- fo:block id=endofdoc/
/fo:flow
/fo:page-sequence

 /root
 /xsl:template
 xsl:template name=header
  !-- How do I display Page 1 of 1 here ??? --
!-- HERE --  fo:blockPage fo:page-number/ of 
fo:page-number-citation ref-id=endofdoc//fo:block

 /xsl:template
xsl:template match=AttachmentList
fo:blockTest of table columns/fo:block
fo:table border=solid
  fo:table-body
xsl:apply-templates select=AttachmentList/
  /fo:table-body
/fo:table
  /xsl:template
 xsl:template match=Attachment
  fo:table-row
fo:table-cell border=solid
   fo:block text-align=center
   fo:external-graphicxsl:attribute 
name=srcxsl:value-of select=filename 
//xsl:attribute/fo:external-graphic
/fo:block
/fo:table-cell

fo:table-cell border=solid
  fo:blockxsl:value-of select=info//block
/fo:table-cell
  /fo:table-row
 /xsl:template
/xsl:stylesheet
-
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: how to display something like Page 1 of 5 in the PDF page header

2004-04-07 Thread Biying Huang
Clay,
Thank you very much!  It  works  perfect.
Biiying
Clay Leeds wrote:
See info below next to the two !-- HERE -- items.
Have a nice day!
Web Maestro Clay
p.s. I assume your actual pages have proper syntax (I didn't check 
anything--just added the code in the proper spots).

==data.xml===
AttachmentList
  Attachment showImage=true
  filenameImage5445.jpg/filename
  infoimage information/info
/Attachment
Attachment showImage=false
  filenameImage5446.jpg/filename
  infoimage information/info
/Attachment
Attachment showImage=true
  filenameImage5454.jpg/filename
  infoimage information/info
/Attachment
 /AttachmentList
=templates.xsl
 ?xml version=1.0 encoding=iso-8859-1?
 xsl:stylesheet xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
  xmlns=http://www.w3.org/1999/XSL/Format;
  version=1.0
 xsl:output indent=yes/
 xsl:template match=/
 root font-family=Times font-size=20pt
layout-master-set
  simple-page-master master-name=frame
  page-height=210mm page-width=297mm
  margin-top=1cm margin-bottom=1cm
  margin-left=1cm margin-right=1cm
region-body region-name=frame-body/
  /simple-page-master
/layout-master-set
fo:page-sequence language=en master-reference=all 
format=1  - #   fo:static-content 
flow-name=xsl-region-before
xsl:call-template name=header /
/fo:static-content
fo:flow flow-name=xsl-region-body
 xsl:apply-templates select=AttachmentList /
!-- HERE -- fo:block id=endofdoc/
/fo:flow
/fo:page-sequence

 /root
 /xsl:template
 xsl:template name=header
  !-- How do I display Page 1 of 1 here ??? --
!-- HERE --  fo:blockPage fo:page-number/ of 
fo:page-number-citation ref-id=endofdoc//fo:block

 /xsl:template
xsl:template match=AttachmentList
fo:blockTest of table columns/fo:block
fo:table border=solid
  fo:table-body
xsl:apply-templates select=AttachmentList/
  /fo:table-body
/fo:table
  /xsl:template
 xsl:template match=Attachment
  fo:table-row
fo:table-cell border=solid
   fo:block text-align=center
   fo:external-graphicxsl:attribute 
name=srcxsl:value-of select=filename 
//xsl:attribute/fo:external-graphic
/fo:block
/fo:table-cell

fo:table-cell border=solid
  fo:blockxsl:value-of select=info//block
/fo:table-cell
  /fo:table-row
 /xsl:template
/xsl:stylesheet
-
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]



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


repeatable header (implemented with table) at top of every page?

2004-02-26 Thread Robert . Walker
hi all, i have spent 2 hours looking for an example.
I am sure one exists so i apologize in advance for asking this lame
question.
I hate bothering people but am at my wits end.

I need some example code that will give a repeatable header at top of 
every page. I have it printing out a one liner like Billing Invoice
on everypage reliably,
but when i changed this to be a table with a few rows (like the header
example below),
it puts  
rob walkeraccount #
on first page at top
then 
123 lane  bill period xyz
on the second page at the top, 
then
city, state, myzip 
on the third page at top

instead of (my table unit in one contiguous block in each page's header) 

rob walkeraccount #
123 lane  bill period xyz
city, state, myzip

surly this has been done ooodle of time, i apologize for asking






I want a page(s) to look like this
===
rob walkeraccount #
123 lane  bill period xyz
city, state, myzip

body of bill
.
.
.
page 1 of 5
===

and the second page  to 

===
rob walkeraccount #
123 lane  bill period xyz
city, state, myzip

more contents from xml xformed
.
.
.
page 2 of 5
===

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



RE: repeatable header (implemented with table) at top of every page?

2004-02-26 Thread Andreas L. Delmelle
 -Original Message-
 From: [EMAIL PROTECTED]


 I need some example code that will give a repeatable header at top of
 every page. I have it printing out a one liner like Billing Invoice
 on everypage reliably,
 but when i changed this to be a table with a few rows (like the header
 example below),

So you are using tables in a static content I presume? Is the height of the
corresponding region set to a size large enough to contain all the rows?

For this effect:

snip /
   page 1 of 5
 ===


check the examples that came with fop, under
FOP_HOME/examples/fo/markers/hide.fo
(and also http://xml.apache.org/fop/fo.html#fo-total-pages )


Hope this helps!

Cheers,

Andreas


-
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]


Page header/footer in FOP

2003-11-20 Thread Manjush G. Menon
is there any way to include header/footer line to each PDF page that
gets generated using FOP?

The Page body will vary, causing pages to increase and I need to
put the same header/footer line in all pages. Is there any possbile
way to do this?


--
Thanks
Manjush



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



Re: Page header/footer in FOP

2003-11-20 Thread Chris Bowditch
From: Manjush G. Menon [EMAIL PROTECTED]
is there any way to include header/footer line to each PDF page that
gets generated using FOP?
The Page body will vary, causing pages to increase and I need to
put the same header/footer line in all pages. Is there any possbile
way to do this?
This is fairly easy to achieve. Modify all your page-masters so they have a 
before and after region, e.g.

fo:simple-page-master name=example page-width=210mm page-height=297mm 
margin-left=5mm margin-top=5mm margin-right=5mm margin-bottom=5mm
fo:region-body margin-top=20mm margin-bottom=20mm/
fo:region-before extent=20mm/
fo:region-after extent=20mm/
/fo:simple-page-master

Then in you page-sequence define two static regions with the contents of 
header and footer in each, e.g.

fo:page-sequence master-reference=example
fo:static-content flow-name=xsl-region-before
fo:blockThe header/fo:block
/fo:static-content
fo:static-content flow-name=xsl-region-after
fo:blockThe footer/fo:block
/fo:static-content
fo:flow flow-name=xsl-region-body
!-- your body content as usual --
/fo:flow
/fo:page-sequence
Chris
_
Use MSN Messenger to send music and pics to your friends 
http://www.msn.co.uk/messenger

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


Page number!! Re: Page header/footer in FOP

2003-11-20 Thread Felice Angemi
Hi All,
**(Maybe this is an old question, don't be angry with 
me)*
I need to know if i can put in each page (in pdf generated by FOP) the 
number of the current page
wrt the total page of the document!
In poor words i need to put a string with the following format in each page:
Page 2 of N

So the question is, can i know the total page generated before the end of 
the FOP job???

Thanks you all
Felix
_
STOP MORE 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: Page number!! Re: Page header/footer in FOP

2003-11-20 Thread Chris Bowditch
From: Felice Angemi [EMAIL PROTECTED]
I need to know if i can put in each page (in pdf generated by FOP) the 
number of the current page
wrt the total page of the document!
In poor words i need to put a string with the following format in each 
page:
Page 2 of N

This is straight forward. See
http://xml.apache.org/fop/fo.html#fo-total-pages
Chris
_
Find a cheaper internet access deal - choose one to suit you. 
http://www.msn.co.uk/internetaccess

-
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]



putting date in header or footer

2003-11-12 Thread Ali Baq
how can i put the date and time of the system (e.g. java.util.Date.toString) 
in the header or footer of the pdf page?
thank you

_
STOP MORE 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: putting date in header or footer

2003-11-12 Thread Andreas L. Delmelle
 -Original Message-
 From: Ali Baq 
 
 how can i put the date and time of the system (e.g. 
 java.util.Date.toString) 
 in the header or footer of the pdf page?

2 possibilities (if you're using XML/XSL-FO to PDF):

- enter the current date as an element or attribute in your source XML
- use XSL extension function in your stylesheet


Greetz,

Andreas


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



RE: putting date in header or footer

2003-11-12 Thread Abhijit Junnare
Use the XSL extension fucntions. I am using
something like this

xmlns:date=http://exslt.org/dates-and-times;

xsl:value-of select=date:date-time()/

I have this code some place in my stylesheet to
convert the XML into PDF using FOP. 
Thanks,
Abhi


__
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

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



Problem with fo:table-header

2003-10-07 Thread Niklas Koponen
Hi!

I have a table that continues to the following page. I want to have the
headers for the table also repeated on the next page.

The first page shows the headers just fine but the second page shows
only every second header. Do I have some property missing or is it a
bug?

Below is a link to the pdf:

http://kotisivu.mtv3.fi/niklas.koponen/tableheader.pdf

The fo is attached.

-Niklas
-- 
Niklas Koponen   | Hietapellontie 3 B 7 | [EMAIL PROTECTED]
+358 40 757 1459 | 02400 KIRKKONUMMI| http://www.iki.fi/niklas.koponen

?xml version=1.0 encoding=iso-8859-1?

!--
This file addresses breaks in page context.
--

fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
!-- layout for all pages --
fo:simple-page-master master-name=all
page-height=29.7cm
page-width=21cm
margin-top=1cm
margin-bottom=2cm
margin-left=2.5cm
margin-right=2.5cm
fo:region-body
margin-top=3cm margin-bottom=2cm/
fo:region-before extent=3cm/
fo:region-after extent=2cm/
/fo:simple-page-master
/fo:layout-master-set

fo:page-sequence master-reference=all
fo:static-content flow-name=xsl-region-after
fo:block font-size=10pt text-align=start
Testi
/fo:block
/fo:static-content

fo:flow flow-name=xsl-region-body

fo:block font-size=12pt font-family=sans-serif
space-after=5mm
THIS IS ONLY A TEST
/fo:block

fo:table width=18cm table-layout=fixed
fo:table-column column-width=5cm
column-number=1
/fo:table-column
fo:table-column column-width=5cm
column-number=2
/fo:table-column
fo:table-column column-width=5cm
column-number=3
/fo:table-column
fo:table-column column-width=3cm
column-number=4
/fo:table-column

fo:table-header
fo:table-row text-align=center
fo:table-cell
fo:block
H 1
/fo:block
/fo:table-cell
fo:table-cell
fo:block
H 2
/fo:block
/fo:table-cell
fo:table-cell
fo:block
H 3
/fo:block
/fo:table-cell
fo:table-cell
fo:block
H 4
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-header
fo:table-body
fo:table-row fo:table-cell border-style=solid 
fo:block asjklsd /fo:block /fo:table-cell fo:table-cell 
border-style=solid fo:block asjklsd /fo:block /fo:table-cell 
fo:table-cell border-style=solid fo:block asjklsd /fo:block 
/fo:table-cell fo:table-cell border-style=solid fo:block asjklsd 
/fo:block /fo:table-cell /fo:table-row
fo:table-row fo:table-cell border-style=solid 
fo:block asjklsd /fo:block /fo:table-cell fo:table-cell 
border-style=solid fo:block asjklsd /fo:block /fo:table-cell 
fo:table-cell border-style=solid fo:block asjklsd /fo:block 
/fo:table-cell fo:table-cell border-style=solid fo:block asjklsd 
/fo:block /fo:table-cell /fo:table-row
fo:table-row fo:table-cell border-style=solid 
fo:block asjklsd /fo:block /fo:table-cell fo:table-cell 
border-style=solid fo:block asjklsd /fo:block /fo:table-cell 
fo:table-cell border-style=solid fo:block asjklsd /fo:block 
/fo:table-cell fo:table-cell border-style=solid fo:block asjklsd 
/fo:block /fo:table-cell /fo:table-row
fo:table-row fo:table-cell border-style=solid 
fo:block asjklsd /fo:block /fo:table-cell fo:table-cell 
border-style=solid fo:block asjklsd /fo:block /fo:table-cell 
fo:table-cell border-style=solid fo:block asjklsd /fo:block 
/fo:table-cell fo:table-cell border-style=solid fo:block asjklsd 
/fo:block /fo:table-cell /fo:table-row
fo:table-row fo:table-cell border-style=solid 
fo:block asjklsd /fo:block /fo:table-cell fo:table-cell 
border-style=solid fo:block asjklsd /fo:block /fo:table-cell 
fo:table-cell border-style=solid fo:block asjklsd /fo:block 
/fo:table-cell fo:table-cell border-style=solid fo:block asjklsd 
/fo:block /fo:table-cell /fo:table-row
fo:table-row fo:table-cell border-style=solid 
fo:block asjklsd /fo:block /fo:table-cell fo:table-cell 
border-style=solid fo:block asjklsd /fo:block /fo:table-cell 
fo:table

Re: Problem with fo:table-header

2003-10-07 Thread Niklas Koponen
On Tue, Oct 07, 2003 at 03:59:17PM +0300, Niklas Koponen wrote:
 Hi!
 
 I have a table that continues to the following page. I want to have the
 headers for the table also repeated on the next page.

I forgot to mention that I'm using xml-fop from the cvs.

-Niklas
-- 
Niklas Koponen   | Hietapellontie 3 B 7 | [EMAIL PROTECTED]
+358 40 757 1459 | 02400 KIRKKONUMMI| http://www.iki.fi/niklas.koponen


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



AW: Problem with fo:table-header

2003-10-07 Thread Jochen Isselhard
 Von: Niklas Koponen [mailto:[EMAIL PROTECTED]

 I have a table that continues to the following page. I want to have the
 headers for the table also repeated on the next page.

 The first page shows the headers just fine but the second page shows
 only every second header. Do I have some property missing or is it a
 bug?

 Below is a link to the pdf:

 http://kotisivu.mtv3.fi/niklas.koponen/tableheader.pdf

 The fo is attached.

When testing your fo-File everything works fine... (with fop0.20.5)Which
version of fop do you use?

jochen


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



Re: Problem with fo:table-header

2003-10-07 Thread Chris Bowditch
From: Niklas Koponen [EMAIL PROTECTED]
On Tue, Oct 07, 2003 at 03:59:17PM +0300, Niklas Koponen wrote:
 Hi!

 I have a table that continues to the following page. I want to have the
 headers for the table also repeated on the next page.
I forgot to mention that I'm using xml-fop from the cvs.
When you did a checkout operation using your CVS client did you specify a 
revision tag? If not then you will have got HEAD or TRUNK code which is 
under heavy construction. It has lots of problems like the one you 
described.

The released versions of FOP come from a branch, which you can get by 
specifying the following revision tag:

fop-0_20_2-maintain
Chris
_
Find a cheaper internet access deal - choose one to suit you. 
http://www.msn.co.uk/internetaccess

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


Re: Problem with fo:table-header

2003-10-07 Thread Niklas Koponen
On Tue, Oct 07, 2003 at 03:14:49PM +0200, Jochen Isselhard wrote:
  Von: Niklas Koponen [mailto:[EMAIL PROTECTED]
 
  I have a table that continues to the following page. I want to have the
  headers for the table also repeated on the next page.
 
  The first page shows the headers just fine but the second page shows
  only every second header. Do I have some property missing or is it a
  bug?
 
  Below is a link to the pdf:
 
  http://kotisivu.mtv3.fi/niklas.koponen/tableheader.pdf
 
  The fo is attached.
 
 When testing your fo-File everything works fine... (with fop0.20.5)Which
 version of fop do you use?

I tried to use the cvs version. I tested the fop-0.20.5 and it seems to
work. I guess I'll use it. The cvs version seemed to also have some
memory problems...

Thank you for the answer.

-Niklas
-- 
Niklas Koponen   | Hietapellontie 3 B 7 | [EMAIL PROTECTED]
+358 40 757 1459 | 02400 KIRKKONUMMI| http://www.iki.fi/niklas.koponen


-
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]



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

2003-06-23 Thread Holk, David A
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
 /fo:block

/fo:table-cell
/fo:table-row
/fo:table-header



LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be 
privileged. It is intended

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

can I use fo:table-header?

2003-06-05 Thread Francisco García



Hello.

I use fo:table-header in a table, but i 
get:

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

My code is: 

fo:table-header
fo:table-row
 fo:table-cell
  
fo:block 
text-align="center" Registro/fo:block
 /fo:table-cell
fo:table-cell
 fo:block text-align="center"Municipio/fo:block
/fo:table-cell
/fo:table-row 
/fo:table-header

I have FOP 
0.20.4
Thanks.
Francisco.


R: can I use fo:table-header?

2003-06-05 Thread Roberto Bonsignori
I use it as:

fo:table
fo:table-header
  fo:table-row
fo:table-cell
fo:block text-align=center Registro/fo:block
/fo:table-cell
fo:table-cell
fo:block text-align=centerMunicipio/fo:block
/fo:table-cell
  /fo:table-row
/fo:table-header
fo:table-body
... table rows ...
/fo:table-body
fo:table

-Messaggio originale-
Da: Francisco García [mailto:[EMAIL PROTECTED]
Inviato: giovedì 5 giugno 2003 10.44
A: [EMAIL PROTECTED]
Oggetto: can I use fo:table-header?


Hello.

I use fo:table-header in a table, but i get:

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

My code is:

fo:table-header
 fo:table-row
fo:table-cell
fo:block text-align=center Registro/fo:block
  /fo:table-cell
fo:table-cell
fo:block text-align=centerMunicipio/fo:block
/fo:table-cell
/fo:table-row
/fo:table-header
I have FOP 0.20.4
Thanks.
Francisco.


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



RE: can I use fo:table-header?

2003-06-05 Thread Torsten Erler
move table header out of the body:


fo:table-header
 fo:table-row
fo:table-cell/
 fo:table-row
/fo:table-header
fo:table-body
 fo:table-row
fo:table-cell/
 fo:table-row
/fo:table-body

cu Torsten
-Original Message-
From: Francisco García [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 5. Juni 2003 10:44
To: [EMAIL PROTECTED]
Subject: can I use fo:table-header?


Hello.

I use fo:table-header in a table, but i get:

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

My code is:

fo:table-header
 fo:table-row
fo:table-cell
fo:block text-align=center Registro/fo:block
  /fo:table-cell
fo:table-cell
fo:block text-align=centerMunicipio/fo:block
/fo:table-cell
/fo:table-row
/fo:table-header
I have FOP 0.20.4
Thanks.
Francisco.


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



Re: Inheritable properties (was: Vanishing text in page header)

2003-05-29 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
fo:table-row font-weight=normal font-size=14pt
 text-align=left display-align=center margin=2mm
   You shold move the text-align and display-align properties to the
   table cell, at least the latter doesn't have an effect otherwise.
I put these properties in table-row to avoid reapeating them in each cell.
I know they have no effect in the row element, but they seem to be
correctly inherited, since I got the results I expected in the cells. I
thought this was a valid way of defining inheritable properties, wasn't it?
It is valid, but there were problem in inheriting properties by table
cells. Apparently they fixed themselves :-)
J.Pietschmann

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


Re: Inheritable properties (was: Vanishing text in page header)

2003-05-28 Thread jaccoud

Thanks, I saw the warning but couldn't find what was overflowing the area.
Increasing the header height fixed the problem.

   BTW
fo:table-row font-weight=normal font-size=14pt
 text-align=left display-align=center margin=2mm
   You shold move the text-align and display-align properties to the
   table cell, at least the latter doesn't have an effect otherwise.

I put these properties in table-row to avoid reapeating them in each cell.
I know they have no effect in the row element, but they seem to be
correctly inherited, since I got the results I expected in the cells. I
thought this was a valid way of defining inheritable properties, wasn't it?

=
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.




   
  J.Pietschmann   
   
  [EMAIL PROTECTED]Para: [EMAIL PROTECTED] 
  
  e   cc:  
   
   Assunto:  Re: Vanishing text in 
page header 
  27/05/2003 17:00  
   
  Favor responder a 
   
  fop-user  
   

   

   




[EMAIL PROTECTED] wrote:
 I am generating a (possibly) multi-page document, with large header and
 footer sections that should appear on each page. However, in the second
 page, all text and images in the header are gone, only the space and some
 table cell borders are left.

Did you get the message
  [WARNING] Some static content could not fit in the area.
This means the static content is not properly reset for the
next page (it will be ok on every other page).
You should decrease the height of the static content or increase
the extent of the region until the message goes away. Simply
adding fixed heigths of the content might give a wrong expected
value for the extent because of possibly added hidden space and
mainly roundoff error.


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]



Vanishing text in page header

2003-05-27 Thread jaccoud
Hi.

I'm getting a very strange behaviour and have not been able to identify the
source. I'm using 0.20.4 (tried 0.20.5rc3 but the result was exactly the
same).

I am generating a (possibly) multi-page document, with large header and
footer sections that should appear on each page. However, in the second
page, all text and images in the header are gone, only the space and some
table cell borders are left. The footer, which is laid out in a similar
way, is OK.

I am enclosing the FO and the resultant PDF.

(See attached file: CE-210-3519-02-G.pdf)(See attached file:
CE-210-3519-02-G.fo)

Any help would be appreciated.

=
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.



CE-210-3519-02-G.pdf
Description: Adobe PDF document


CE-210-3519-02-G.fo
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Vanishing text in page header

2003-05-27 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
I am generating a (possibly) multi-page document, with large header and
footer sections that should appear on each page. However, in the second
page, all text and images in the header are gone, only the space and some
table cell borders are left.
Did you get the message
 [WARNING] Some static content could not fit in the area.
This means the static content is not properly reset for the
next page (it will be ok on every other page).
You should decrease the height of the static content or increase
the extent of the region until the message goes away. Simply
adding fixed heigths of the content might give a wrong expected
value for the extent because of possibly added hidden space and
mainly roundoff error.
BTW
fo:table-row font-weight=normal font-size=14pt
 text-align=left display-align=center margin=2mm
You shold move the text-align and display-align properties to the
table cell, at least the latter doesn't have an effect otherwise.
J.Pietschmann

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


Re: Vanishing text in page header

2003-05-27 Thread J.Pietschmann
[EMAIL PROTECTED] wrote:
Any help would be appreciated.
Change the extent of the header region to 61mm.
J.Pietschmann

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


RE: help about fo:table-header

2003-05-16 Thread John Marshall
Jean-Francois Selber wrote:

 In fact I can't used different page-master and  the region-before to replace
 the table-header
 because I can have successivly two table in the same page sequence and
 for this two table I want to display header only on the second page. In fact
 header would be only display if the table in too big
 for the current page, then only if the table is write on different page

 Thanks

This sounds like the problem I just had. My application is an html-to-pdf 
converter. If the first table row contains only table headers then I want to 
propagate it by way of an fo:table-header. This also implies suppressing that 
row from the table body, as well as counting columns in the first row. Here are 
my templates:

  xsl:template match=table
fo:table table-layout=fixed width=100%
!-- First row sets column count and possible table header --
xsl:apply-templates select=descendant::tr[1] mode=columns/
fo:table-body
xsl:apply-templates select=descendant::tr[position()!=1] mode=row/
/fo:table-body
/fo:table
  /xsl:template

  !-- Set columns by width or column span, default to even width --
  xsl:template match=tr mode=columns
xsl:for-each select=th|td
  xsl:choose
  xsl:when test=count(@width)!=0
fo:table-column
xsl:attribute name=column-width
  xsl:textproportional-column-width(/xsl:text
  xsl:value-of select=substring-before(@width[1], '%')/
  xsl:text)/xsl:text
/xsl:attribute
/fo:table-column
  /xsl:when
  xsl:when test=count(@colspan)!=0
xsl:call-template name=colspan
  xsl:with-param name=count select=number(@colspan)/
/xsl:call-template
  /xsl:when
  xsl:otherwise
fo:table-column column-width=proportional-column-width(1)/
  /xsl:otherwise
  /xsl:choose
/xsl:for-each
xsl:choose
!-- Propagate an all-th row as a table header --
xsl:when test=count(th)!=0 and count(td)=0
  fo:table-header
  fo:table-row
  xsl:apply-templates/
  /fo:table-row
  /fo:table-header
/xsl:when
!-- If not all-th, then treat as a normal row --
xsl:otherwise
  xsl:apply-templates select=. mode=row/
/xsl:otherwise
/xsl:choose
  /xsl:template

  xsl:template name=colspan
xsl:param name=count/
xsl:if test=number($count)gt;0
  fo:table-column column-width=proportional-column-width(1)/
  xsl:call-template name=colspan
xsl:with-param name=count select=number($count)-1/
  /xsl:call-template
/xsl:if
  /xsl:template

  xsl:template match=tr mode=row
fo:table-row keep-together=always
xsl:apply-templates/
/fo:table-row
  /xsl:template

I hope this is helpful.

John Marshall
Accurate Software

The Courtyard, Denmark Street, Wokingham, Berkshire, RG40 2AZ, UK.
Tel: +44 (0)118 977 3889
Fax: +44 (0)118 977 1260
http://www.accuratesoftware.com http://www.accuratesoftware.com




-Original Message-
From: Selber Jean-François [mailto:[EMAIL PROTECTED]
Sent: 15 May 2003 17:09
To: [EMAIL PROTECTED]
Subject: Re: help about fo:table-header





- Original Message -
From: Clay Leeds [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 15, 2003 5:24 PM
Subject: Re: help about fo:table-header


 The idea is to use a different page-master on the second and subsequent
 page. Then, you can put your table-header block in the region-before.

 On 5/15/2003 8:07 AM, Selber Jean-François wrote:
  I want to find a way to not display table-header in first time and only
  display header on the start
  of next page if the table is too big to be display on the same page

 --
 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]



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



The UK office of Accurate Software will be moving offices from May 19th to the 
following new location:
80 Peach Street, Wokingham, Berkshire, RG40 1XH.
The existing telephone and fax numbers will remain unchanged.

Accurate Software

[EMAIL PROTECTED]
www.accuratesoftware.com

Europe . North America . Australasia . Africa

The information in this email is confidential and privileged and is intended 
only for the use of the individual or entity listed above.  If you are neither 
the intended individual, or entity listed above, nor the person responsible for 
the delivery of this email to the intended recipients, you are hereby notified 
that any unauthorised distribution, copying or use of this email is prohibited. 
If you have received this email in error, please notify the Accurate system 
manager at [EMAIL PROTECTED] or on +44 (0)118 977

Re: help about fo:table-header

2003-05-16 Thread Selber Jean-François
Thanks a lot!!

The solution to solve my problem is to use fop extensions
http://xml.apache.org/fop/extensions.html
The extension I want to use is continued-label extension but I can't found
the file examples/fo/basic/contlabel.fo
Could someone send me this file or give me a sample of this
continued-label extension.
At the end of the extension description
http://xml.apache.org/fop/extensions.html I found:

Continued-label (for table-header/-footer
Please see examples/fo/basic/contlabel.fo

but I don't found this file

Thanks

- Original Message -
From: Jeremias Maerki [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 15, 2003 6:21 PM
Subject: Re: help about fo:table-header


 I think, the best match I found while looking in the mailing list
 archives is:
 http://marc.theaimsgroup.com/?l=fop-userm=103260578416087w=2?

 Here are the threads of interest:
 http://marc.theaimsgroup.com/?t=10324970642r=1w=2
 http://marc.theaimsgroup.com/?t=10377466451r=1w=2
 http://marc.theaimsgroup.com/?t=10038201961r=1w=2

 Maybe that helps. Difficult topic at any rate.

 On 15.05.2003 15:34:26 Selber Jean-François wrote:
  Hello,
  I asked yesterday some help in order to build with FOP  a pdf document
  from a FO document which may contain a large table and I wished
  differentiate the header of the first page containing the table from the
  header of the next pages.
 
  I tried to use unfortunately the notion of dynamic fo:headers.
 
 
  Another way is to not print a header on the first page which contains
  the beginning of the table and to only print this header on the next
  pages.
 
  How can I do this!



 Jeremias Maerki


 -
 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]



help about fo:table-header

2003-05-15 Thread Selber Jean-François



Hello, I 
asked yesterday some help in order to build with FOP a pdf 
documentfrom a FO document which may contain a large table and I 
wisheddifferentiate the header of the first page containing the table from 
theheader of the next pages.I tried to use unfortunately the notion 
of dynamic fo:headers. Another way is to not print a header on the 
first page which containsthe beginning of the table and to only print this 
header on the nextpages.How can I do this!Sorry for my 
poor EnglishThank you


Re: help about fo:table-header

2003-05-15 Thread Clay Leeds
Jean-François,
I believe this link describes how to do what you're trying to do:
http://www.dpawson.co.uk/xsl/sect3/pagelayout.html#d9245e184
Also, the FAQ list there is really great for FO Questions:
http://www.dpawson.co.uk/xsl/sect3/index.html
Bon chance!
On 5/15/2003 6:34 AM, Selber Jean-François wrote:
Hello,
I asked yesterday some help in order to build with FOP  a pdf document
from a FO document which may contain a large table and I wished
differentiate the header of the first page containing the table from the
header of the next pages.
I tried to use unfortunately the notion of dynamic fo:headers.
Another way is to not print a header on the first page which contains
the beginning of the table and to only print this header on the next
pages.
How can I do this!
Sorry for my poor English
Thank you

--
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]


Re: help about fo:table-header

2003-05-15 Thread Selber Jean-François
Thanks for your help
But my problem is not on page header but on table header

I want to find a way to not display table-header in first time and only
display header on the start
of next page if the table is too big to be display on the same page

Thank you


- Original Message -
From: Clay Leeds [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 15, 2003 4:32 PM
Subject: Re: help about fo:table-header


 Jean-François,

 I believe this link describes how to do what you're trying to do:

 http://www.dpawson.co.uk/xsl/sect3/pagelayout.html#d9245e184

 Also, the FAQ list there is really great for FO Questions:

 http://www.dpawson.co.uk/xsl/sect3/index.html

 Bon chance!

 On 5/15/2003 6:34 AM, Selber Jean-François wrote:
  Hello,
  I asked yesterday some help in order to build with FOP  a pdf document
  from a FO document which may contain a large table and I wished
  differentiate the header of the first page containing the table from the
  header of the next pages.
 
  I tried to use unfortunately the notion of dynamic fo:headers.
 
 
  Another way is to not print a header on the first page which contains
  the beginning of the table and to only print this header on the next
  pages.
 
  How can I do this!
 
 
  Sorry for my poor English
  Thank you


 --
 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]




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



Re: help about fo:table-header

2003-05-15 Thread Clay Leeds
The idea is to use a different page-master on the second and subsequent 
page. Then, you can put your table-header block in the region-before.

On 5/15/2003 8:07 AM, Selber Jean-François wrote:
I want to find a way to not display table-header in first time and only
display header on the start
of next page if the table is too big to be display on the same page
--
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]


Re: help about fo:table-header

2003-05-15 Thread Selber Jean-François
In fact I can't used different page-master and  the region-before to replace
the table-header
because I can have successivly two table in the same page sequence and
for this two table I want to display header only on the second page. In fact
header would be only display if the table in too big
for the current page, then only if the table is write on different page

Thanks



- Original Message -
From: Clay Leeds [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 15, 2003 5:24 PM
Subject: Re: help about fo:table-header


 The idea is to use a different page-master on the second and subsequent
 page. Then, you can put your table-header block in the region-before.

 On 5/15/2003 8:07 AM, Selber Jean-François wrote:
  I want to find a way to not display table-header in first time and only
  display header on the start
  of next page if the table is too big to be display on the same page

 --
 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]



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



Re: help about fo:table-header

2003-05-15 Thread Jeremias Maerki
I think, the best match I found while looking in the mailing list
archives is:
http://marc.theaimsgroup.com/?l=fop-userm=103260578416087w=2?

Here are the threads of interest:
http://marc.theaimsgroup.com/?t=10324970642r=1w=2
http://marc.theaimsgroup.com/?t=10377466451r=1w=2
http://marc.theaimsgroup.com/?t=10038201961r=1w=2

Maybe that helps. Difficult topic at any rate.

On 15.05.2003 15:34:26 Selber Jean-François wrote:
 Hello, 
 I asked yesterday some help in order to build with FOP  a pdf document
 from a FO document which may contain a large table and I wished
 differentiate the header of the first page containing the table from the
 header of the next pages.
 
 I tried to use unfortunately the notion of dynamic fo:headers. 
 
 
 Another way is to not print a header on the first page which contains
 the beginning of the table and to only print this header on the next
 pages.
 
 How can I do this!



Jeremias Maerki


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



RE: fo-pdf header content and alternative headers

2003-05-12 Thread John Marshall



Steve Guo wrote:


 1. Maybe a dumb
question
 Since the content of the header is
specified by,
 fo:static-content
element
 does it mean the content cannot be
'dynamic'?, such as pulling from the chapter_title
element?
 If it cannot be 'dynamic', then I guess it
has to be hard-coded?

I
got into XSL-FO with "XSL-FO", Dave Pawson, O'Reilly, ISBN 0-596-00355-2 and his
explanation of fo:static-content clarifies this nicely, including the fact that
it is the layout that is static, not the content. See his section on running
headers, beginning on page 152.

However, this was what gave me the problem I posted recently against
0.20.5rc, where J. Pietschmann pointed me to the fix in later
versions.

John
Marshall
Accurate
SoftwareThe Courtyard, Denmark
Street, Wokingham, Berkshire, RG40 2AZ, UK.Tel: +44 (0)118 977
3889Fax: +44 (0)118 977
1260http://www.accuratesoftware.com

 
The UK office of Accurate Software will be moving offices from May 19th to the following new location:
80 Peach Street, Wokingham, Berkshire, RG40 1XH.
The existing telephone and fax numbers will remain unchanged.

Accurate Software
 

 
[EMAIL PROTECTED] 
 
www.accuratesoftware.com
 

 
Europe . North America . Australasia . Africa
 

 
The information in this email is confidential and privileged and is intended only for the use of the individual or entity listed above.  If you are neither the intended individual, or entity listed above, nor the person responsible for the delivery of this email to the intended recipients, you are hereby notified that any unauthorised distribution, copying or use of this email is prohibited. If you have received this email in error, please notify the Accurate system manager at [EMAIL PROTECTED] or on +44 (0)118 977 3889.  The views expressed in this communication may not necessarily be the views held by the Accurate Group.
 







fo-pdf header content and alternative headers

2003-05-09 Thread Steve Guo
Several books uses and talked about alternative headers (footers) for odd and even pages, in the context of FOP. I have two questions:
1. Maybe a dumb question
Since the content of the header is specified by,
fo:static-content element
does it mean the content cannot be 'dynamic'?, such as pulling from the chapter_title element?
If it cannot be 'dynamic', then I guess it has to be hard-coded?

2. Many books use alternative heading on odd and even pages. It is easy to have alternative positioning of headers using
fo:simple-page-master, but I did not find a way to change the content of headers? Is there a way to specify which header to use for:
fo:conditional-page-master-reference?

thanks all

Steve
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

Re: fo-pdf header content and alternative headers

2003-05-09 Thread J.Pietschmann
Steve Guo wrote:
Several books uses and talked about alternative headers (footers) for odd and
even pages, in the context of FOP. I have two questions:1. Maybe a dumb
questionSince the content of the header is specified by,fo:static-content
elementdoes it mean the content cannot be 'dynamic'?, such as pulling from
the chapter_title element?
Look up markers and retrieve-marker:
  http://www.w3.org/TR/xsl/slice6.html#fo_marker
  http://www.w3.org/TR/xsl/slice6.html#fo_retrieve-marker
 2. Many books use alternative heading on odd and even pages.
It is easy to have alternative positioning of headers
usingfo:simple-page-master, but I did not find a way to change the content
of headers? Is there a way to specify which header to use
for:fo:conditional-page-master-reference?
Yes. This is a FAQ:
 http://xml.apache.org/fop/fo.html#fo-oddeven
BTW check your mail client settings, it grossly misformats
the message (and turn off HTML if possible).
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Header is not repeating on second page

2003-05-06 Thread vikas waykole
Hi All,
I am having one FO file which is generating 2 pages of pdf.
I have put jpeg file in the header for fo file.
I am getting imga ein header of first page but not the second page.
Does anyone knows the reason and fix for this.
Thanks in advance,
Vikas Waykole
_
IIFA Awards. Vote now. 
http://server1.msn.co.in/msnspecials/iifa2003/index.asp Celebrate Indian 
cinema.

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


Re: Header is not repeating on second page

2003-05-06 Thread Jeremias Maerki
You need to make sure that you place your header in a:
fo:static-content flow-name=xsl-region-before

And then you need to make sure that this region is specified for all
simple-page-masters you use.

Look at examples/fo/pagination/franklin_alt.fo. It does something
similar.

On 06.05.2003 10:29:36 vikas waykole wrote:
 I am having one FO file which is generating 2 pages of pdf.
 I have put jpeg file in the header for fo file.
 I am getting imga ein header of first page but not the second page.
 Does anyone knows the reason and fix for this.


Jeremias Maerki


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



Page HEader

2003-04-07 Thread vikram . x . kondadasula

Hai,

I nedd to add header to all the pages.Could anyone tell me how to do it.

Thanks
Vikram



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



Re: Page HEader

2003-04-07 Thread Peter Solberg

You should take a look at the examples included in the FOP package 
FOP/docs/examples/pagination/basic1.fo
Many of the questions you have are answered quite extensively in the examples. Set up you environment to run FO files to product PDF's directly. Then test all of the examples.
java.exe -Xms64m -Xmx768m -classpath fop.jar;xml-apis.jar;xercesImpl-2.2.1.jar;xalan-2.4.1.jar;batik.jar;avalon-framework-cvs-20020806.jar;bsf.jar;jimi-1.0.jar;jai_core.jar;jai_codec.jar org.apache.fop.apps.Fop (FileName).fo -pdf (OutFileName).pdf
Hope that helps.
Pete Solberg

From: [EMAIL PROTECTED] 
Reply-To: [EMAIL PROTECTED] 
To: [EMAIL PROTECTED] 
Subject: Page HEader 
Date: Mon, 7 Apr 2003 15:17:35 -0400 
 
 
Hai, 
 
I nedd to add header to all the pages.Could anyone tell me how to do it. 
 
Thanks 
Vikram 
 
 
 
- 
To unsubscribe, e-mail: [EMAIL PROTECTED] 
For additional commands, e-mail: [EMAIL PROTECTED] 
 
Add photos to your e-mail with MSN 8. Get 2 months FREE*.

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



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]


Problems with header

2003-02-06 Thread Celine Murphy



Hi,

I am having problems 
with my table creation. Specifically the header. I want my table header to 
appear once and then the table body uses a xsl:for-each to run through 
certain nodes and populate the body. 

The problem I am 
having is that my table looks great but straight after it the header is printed 
out on its own again. This is when the xsl:for each is inside the 
fo:table-body tag.
If I change 
the position xsl:for-each tagto within the fo:table-body 
tag the header does not repeat itself. Instead it is the bottom border that 
repeats itself. I can't figure out what I am doing wrong. Can anyone 
help??


This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.  If you are not the intended recipient, you should not copy, retransmit or use the e-mail and/or files transmitted with it  and should not disclose their contents. In such a case, please notify [EMAIL PROTECTED] and delete the message from your own system. Any opinions expressed in this e-mail and/or files transmitted with it that do not relate to the official business of this company are those solely of the author and should not be interpreted as being endorsed by this company.

  


output.pdf
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problems with header

2003-02-06 Thread J.Pietschmann
Celine Murphy wrote:
I am having problems with my table creation.
Your usage of terms indicates that you also have a somewhat
muddled understanding of the technology you are dealing with.
In the XSLFO world, the term table header usually means
a specific FO:
  http://www.w3.org/TR/xsl/slice6.html#fo_table-header
This does not match your problem description closely enough,
therefore I guess you have a problem more in the XSLT area.
My suggestions:
- Get one of Jeni Tennison's books about XSLT or, more recommended,
  take a 1-2 week training. Copypaste from an online tutorial does
  not make you a competent XSLT programmer.
- Read http://www.tuxedo.org/~esr/faqs/smart-questions.html
- Ask further questions regarding XSLT on the XSL list
   http://www.mulberrytech.com/xsl/xsl-list/
  There is also a link to the FAQ on this page.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


suppress sign in header on last page

2003-02-05 Thread Zieseniß, Markus
Hello,

I have a floating text (1..n pages) and need a sign for our inserter
(enveloping machine), which appears on all pages except the last. I tried to
put the inserter-sign in the header, but this sign is also printed on the
last page. Then I tried to overwrite this sign by a white-bitmap graphic,
but this also does not work. Can anybody help me?

Thanks in advance
Markus 

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



Re: suppress sign in header on last page

2003-02-05 Thread Clay Leeds
Zieseniß, Markus wrote:
Hello,
I have a floating text (1..n pages) and need a sign for our inserter
(enveloping machine), which appears on all pages except the last. I tried to
put the inserter-sign in the header, but this sign is also printed on the
last page. Then I tried to overwrite this sign by a white-bitmap graphic,
but this also does not work. Can anybody help me?
Thanks in advance
Markus 
I do something similar, except I add Continued on next page... in the 
footer of every page (except the last one, of course! ;-).

How do I do it?
In the flow xsl-region-body, I place this:
fo:flow flow-name=xsl-region-body
  fo:block xsl:use-attribute-sets=attNormal
xsl:call-template name=tmpBody/
fo:block padding=0pt font-size=1pt
  fo:marker marker-class-name=table-continued/
/fo:block
  /fo:block
/fo:flow
Then in the footer (region-after) I place an fo:retrieve-marker ... at 
the top of the template which builds the footer. You would place this in 
your region-before so it would be in the header.

xsl:template name=tmpFooter
  fo:block padding-left=18pt
fo:table border=0pt padding-bottom=0pt padding-right=0pt 
padding-before=4pt table-layout=fixed
  fo:table-column column-width=19.8cm/
  fo:table-body
fo:table-row
  fo:table-cell text-align=left padding-left=6pt
fo:block text-align=left font-weight=bold
  fo:retrieve-marker retrieve-class-name=table-continued 
retrieve-position=last-starting-within-page retrieve-boundary=page/
/fo:block
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table
  /fo:block
  ...
/xsl:template

Then in the tmpBody (which is what makes up the content region-body 
section), I place an fo:marker which corresponds to the marker.

xsl:template name=tmpBody
  fo:block padding=0pt text-align=left
...
fo:block padding=0pt font-size=1pt
  fo:marker marker-class-name=table-continued/
  fo:block id=endofdoc/
/fo:block
  /fo:block
/xsl:template
(OT: Notice fo:block id=endofdoc which I use for Page 1 of n? ;-)
Finally, everywhere which might cause a continued page-break, I place 
the text  style of the marker I want to display on every page except 
the last.

  fo:table-row padding=1pt
fo:table-cell/
fo:table-cell number-columns-spanned=4 padding-left=10pt 
padding-top=3pt display-align=center
  fo:block font-size=7pt line-height=110% 
padding-top=0pt padding-bottom=0pt display-align=before
fo:inline font-weight=bold font-style=italic
  fo:marker marker-class-name=table-continuedContinued 
on next page.../fo:marker
/fo:inline
  /fo:block
/fo:table-cell
  /fo:table-row
/fo:table-body
  /fo:table
/xsl:template

This took me a while to get working. If anyone has improvements to this 
solution, I'd be happy to hear it. In addition, I'd be happy to work 
with someone to get this into the EXAMPLES for FOP. I don't know what 
would be required beyond what I've included, but I'd be happy to do stuff.

Web Maestro Clay
--
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]


Re: suppress sign in header on last page

2003-02-05 Thread Toufic Nehme
Hi,
I had the same problem and somebody on this list suggested something like this.

fo:layout-master-set
fo:simple-page-master master-name=lastPage
   page-height=
   page-width=
   margin-top=
   margin-bottom=
   margin-left=
   margin-right=
  fo:region-body margin-top= /
  fo:region-start margin-top=2cm /
  fo:region-before extent=/
  fo:region-after extent=/
/fo:simple-page-master
fo:simple-page-master master-name=others
   page-height=
   page-width=
   margin-top=
   margin-bottom=
   margin-left=
   margin-right=
   fo:region-body margin-top=/
fo:region-start extent=/
fo:region-before extent=/
fo:region-after extent=/
/fo:simple-page-master
fo:page-sequence-master master-name=layoutName
fo:repeatable-page-master-reference master-reference=others/
fo:repeatable-page-master-alternatives
   fo:conditional-page-master-reference master-reference=lastPage
page-position=last /
   fo:conditional-page-master-reference master-reference=others/
/fo:repeatable-page-master-alternatives
  /fo:page-sequence-master
  /fo:layout-master-set

In your  fo:page-sequence master-reference=lastPage you can specify what
ever you want on
the header of the last page.

and if you need more details see:
http://www.dpawson.co.uk/xsl/sect3/bk/ch05.html

I hope this help.

Zieseniß, Markus wrote:

 Hello,

 I have a floating text (1..n pages) and need a sign for our inserter
 (enveloping machine), which appears on all pages except the last. I tried to
 put the inserter-sign in the header, but this sign is also printed on the
 last page. Then I tried to overwrite this sign by a white-bitmap graphic,
 but this also does not work. Can anybody help me?

 Thanks in advance
 Markus

 -
 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]



AW: suppress sign in header on last page

2003-02-05 Thread Zieseniß, Markus
I also thought so, but page-position=last  did not work. 
 

 -Ursprüngliche Nachricht-
 Von:  Toufic Nehme [SMTP:[EMAIL PROTECTED]
 Gesendet am:  Mittwoch, 5. Februar 2003 18:29
 An:   [EMAIL PROTECTED]
 Betreff:  Re: suppress sign in header on last page
 
 Hi,
 I had the same problem and somebody on this list suggested something like
 this.
 
 fo:layout-master-set
 fo:simple-page-master master-name=lastPage
page-height=
page-width=
margin-top=
margin-bottom=
margin-left=
margin-right=
   fo:region-body margin-top= /
   fo:region-start margin-top=2cm /
   fo:region-before extent=/
   fo:region-after extent=/
 /fo:simple-page-master
 fo:simple-page-master master-name=others
page-height=
page-width=
margin-top=
margin-bottom=
margin-left=
margin-right=
fo:region-body margin-top=/
 fo:region-start extent=/
 fo:region-before extent=/
 fo:region-after extent=/
 /fo:simple-page-master
 fo:page-sequence-master master-name=layoutName
 fo:repeatable-page-master-reference master-reference=others/
 fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference
 master-reference=lastPage
 page-position=last /
fo:conditional-page-master-reference
 master-reference=others/
 /fo:repeatable-page-master-alternatives
   /fo:page-sequence-master
   /fo:layout-master-set
 
 In your  fo:page-sequence master-reference=lastPage you can specify
 what
 ever you want on
 the header of the last page.
 
 and if you need more details see:
 http://www.dpawson.co.uk/xsl/sect3/bk/ch05.html
 
 I hope this help.
 
 Zieseniß, Markus wrote:
 
  Hello,
 
  I have a floating text (1..n pages) and need a sign for our inserter
  (enveloping machine), which appears on all pages except the last. I
 tried to
  put the inserter-sign in the header, but this sign is also printed on
 the
  last page. Then I tried to overwrite this sign by a white-bitmap
 graphic,
  but this also does not work. Can anybody help me?
 
  Thanks in advance
  Markus
 
  -
  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]

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



Re: suppress sign in header on last page

2003-02-05 Thread J.Pietschmann
Toufic Nehme wrote:
   fo:conditional-page-master-reference master-reference=lastPage
page-position=last /
Page-position=last is not implemented in FOP. There are several
ways in the list archive to get around this though.
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]



  1   2   >