Re: Table text alignment

2005-01-18 Thread Jeremias Maerki
Sometimes you have to play around a bit. In short: padding works on
table-cells. See the attachment.

On 18.01.2005 02:05:29 David P. Nesbitt wrote:
 I am having an issue with table alignment where the
 first column is text-align=right and the next column
 is text-align=left.  I cannot seem to get any space
 between the two columns.  padding-right and
 padding-left, respectively, do not seem to work.
 
 Is there some trick to do this?


Jeremias Maerki


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

Re: Table Cell Question

2005-01-13 Thread J.Pietschmann
Luke Shannon wrote:
The second block in the second row is not getting written out. Even if I
make it the only block of that cell, nothing gets written out.
Guess: The call-template doesn't produce anything.
Generate a FO file
 http://xml.apache.org/fop/running.html#check-input
and check whether the expected content is there.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Table Cell Question

2005-01-13 Thread Luke Shannon
I have verified that the template is producing an output.

As a test I put putting a much short value in the place of the longer one I
was trying to write. This works.

It just won't produce an output of the longer value.

Any ideas?

Thanks,

Luke
- Original Message - 
From: J.Pietschmann [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 3:56 PM
Subject: Re: Table Cell Question


 Luke Shannon wrote:
  The second block in the second row is not getting written out. Even if I
  make it the only block of that cell, nothing gets written out.

 Guess: The call-template doesn't produce anything.
 Generate a FO file
   http://xml.apache.org/fop/running.html#check-input
 and check whether the expected content is there.

 J.Pietschmann

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




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



Re: Table Cell Question

2005-01-13 Thread Luke Shannon
I may have found the problem.

The inputs causing problem are coming in from IE.

When the user inputs data from IE it is done in a text tool that surrounds
paragraphs in p tags.

It seems the content being sent in the block is in HTML tags.

If I take the pages out this are fine. Anyone know an easy way to strip out
HTML tags?

Luke
- Original Message - 
From: Luke Shannon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 4:10 PM
Subject: Re: Table Cell Question


 I have verified that the template is producing an output.

 As a test I put putting a much short value in the place of the longer one
I
 was trying to write. This works.

 It just won't produce an output of the longer value.

 Any ideas?

 Thanks,

 Luke
 - Original Message - 
 From: J.Pietschmann [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, January 13, 2005 3:56 PM
 Subject: Re: Table Cell Question


  Luke Shannon wrote:
   The second block in the second row is not getting written out. Even if
I
   make it the only block of that cell, nothing gets written out.
 
  Guess: The call-template doesn't produce anything.
  Generate a FO file
http://xml.apache.org/fop/running.html#check-input
  and check whether the expected content is there.
 
  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]




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



Re: Table Help

2005-01-11 Thread The Web Maestro
On Jan 11, 2005, at 11:38 AM, Luke Shannon wrote:
Hello;
I am looking for one column that only contains an image, next to it a 
column
with 2 cells stack on top of one another. What I get with the code 
below is
the image and only the first cell in the second row?

Any ideas?
Does anyone know a good online tutorial for figuring out tables?
I'd say check out the examples/ directory in the FOP distribution you 
downloaded.

Luke
xsl:template name=s2_pdf
xsl:param name=imagename 
select=concat(string('IMAGE'),number('1')) /
!-- text 1 --
fo:flow flow-name=xsl-region-body
fo:table inline-progression-dimension=100% table-layout=fixed
fo:table-column column-width=50% number-columns-repeated=2/
never saw the number-columns-repeated attribute. Try this (from [1]):
  fo:table table-layout=fixed width=100%
fo:table-column column-width=proportional-column-width(1)/
fo:table-column column-width=proportional-column-width(1)/
fo:table-body
  fo:table-row
fo:table-cell
  fo:blockfoo/fo:block
/fo:table-cell
fo:table-cell
  fo:blockbar/fo:block
/fo:table-cell
  /fo:table-row
/fo:table-body
  /fo:table
[1]
http://xml.apache.org/fop/fo.html#fo-center-table-horizon
fo:table-body
fo:table-row
!-- image cell --
fo:table-cell number-rows-spanned=2
fo:block
xsl:call-template name=image_display_and_upload
xsl:with-param name=imagenode select=. /
/xsl:call-template
/fo:block
/fo:table-cell
/fo:table-row
fo:table-row
!-- text number one cell --
fo:table-cell
fo:block font-family=Arial font-size=12pt font-weight=bold
break-after=auto space-after=10pt text-align=left
xsl:call-template name=text_display_and_edit
xsl:with-param name=text_number select=number('1') /
/xsl:call-template
/fo:block
/fo:table-cell
!-- text number two cell --
fo:table-cell
fo:block font-family=Arial font-size=12pt font-weight=bold
break-after=auto space-after=10pt text-align=left
xsl:call-template name=text_display_and_edit
xsl:with-param name=text_number select=number('2') /
/xsl:call-template
/fo:block
/fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
/fo:flow
/xsl:template
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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: Table Help

2005-01-11 Thread Luke Shannon
Hello Web Maestro Clay;

Thanks for your help up to this point. It is appreciated.

What I don't understand is the relationship between columns and tables.

The fact that you list the columns and than in the body the rows is
confusing, and the fact that there are no errors, only a blank page when I
make a mistake with my table is a little frustrating.

If there is one column and 2 rows, each with a cell, would it not just write
one row on top of the other in the column? So if there is 2 columns and and
2 rows with 2 cells would it not write one cell into each column, with row
one appearing above row two?

Thanks,

Luke

- Original Message - 
From: The Web Maestro [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 2:41 PM
Subject: Re: Table Help


 On Jan 11, 2005, at 11:38 AM, Luke Shannon wrote:
  Hello;
 
  I am looking for one column that only contains an image, next to it a
  column
  with 2 cells stack on top of one another. What I get with the code
  below is
  the image and only the first cell in the second row?
 
  Any ideas?
 
  Does anyone know a good online tutorial for figuring out tables?

 I'd say check out the examples/ directory in the FOP distribution you
 downloaded.

  Luke
 
  xsl:template name=s2_pdf
  xsl:param name=imagename
  select=concat(string('IMAGE'),number('1')) /
  !-- text 1 --
  fo:flow flow-name=xsl-region-body
  fo:table inline-progression-dimension=100% table-layout=fixed
  fo:table-column column-width=50% number-columns-repeated=2/

 never saw the number-columns-repeated attribute. Try this (from [1]):

fo:table table-layout=fixed width=100%
  fo:table-column column-width=proportional-column-width(1)/
  fo:table-column column-width=proportional-column-width(1)/
  fo:table-body
fo:table-row
  fo:table-cell
fo:blockfoo/fo:block
  /fo:table-cell
  fo:table-cell
fo:blockbar/fo:block
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table
 [1]
 http://xml.apache.org/fop/fo.html#fo-center-table-horizon

  fo:table-body
  fo:table-row
  !-- image cell --
  fo:table-cell number-rows-spanned=2
  fo:block
  xsl:call-template name=image_display_and_upload
  xsl:with-param name=imagenode select=. /
  /xsl:call-template
  /fo:block
  /fo:table-cell
  /fo:table-row
  fo:table-row
  !-- text number one cell --
  fo:table-cell
  fo:block font-family=Arial font-size=12pt font-weight=bold
  break-after=auto space-after=10pt text-align=left
  xsl:call-template name=text_display_and_edit
  xsl:with-param name=text_number select=number('1') /
  /xsl:call-template
  /fo:block
  /fo:table-cell
  !-- text number two cell --
  fo:table-cell
  fo:block font-family=Arial font-size=12pt font-weight=bold
  break-after=auto space-after=10pt text-align=left
  xsl:call-template name=text_display_and_edit
  xsl:with-param name=text_number select=number('2') /
  /xsl:call-template
  /fo:block
  /fo:table-cell
  /fo:table-row
  /fo:table-body
  /fo:table
  /fo:flow
  /xsl:template
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

 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: Table Help

2005-01-11 Thread JBryant
 What I don't understand is the relationship between columns and tables.

Well, the fo:table element requires one or more fo:table-column elements 
as children. In other words, you have to remember that XSL:FO requires you 
to specify the columns before you specify the table body. When you start 
specifying cells, FOP requires that each row have the same number of cells 
as the table has columns (though you can have one column span cells). 
Other processors might permit an empty cell, but FOP does no thinking for 
you, so it requires that you spell out everything.

In the following simple example, notice that the table-column elements and 
the table-body element are the immediate descendents (the children) of the 
table element. The rows and cells are and must be, because table-body has 
to contain them, deeper descendents (grandchildren and 
great-grandchildren, as it were).

fo:table table-layout=fixed
  fo:table-column column-width=2in/
  fo:table-column column-width=2.5in/
  fo:table-column column-width=2in/
  fo:table-body
fo:table-row
  fo:table-cell
fo:block xsl:use-attribute-sets=footerleft
  Date prepared: xsl:value-of 
select=format-date(current-date(),'[D1] [MNn] [Y0001]')/
/fo:block
  /fo:table-cell
  fo:table-cell
fo:block xsl:use-attribute-sets=footercenter
  Confidential and Proprietary
/fo:block
  /fo:table-cell
  fo:table-cell
fo:block xsl:use-attribute-sets=footerright
  fo:page-number/
/fo:block
  /fo:table-cell
/fo:table-row
  /fo:table-body
/fo:table

HTH

Jay Bryant
Bryant Communication Services
(on contract at Syngeristic Solution Technologies)

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



Re: Table Help

2005-01-11 Thread Luke Shannon
Thank you Jay. This helps a lot.

- Original Message - 
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 3:50 PM
Subject: Re: Table Help


  What I don't understand is the relationship between columns and tables.

 Well, the fo:table element requires one or more fo:table-column elements
 as children. In other words, you have to remember that XSL:FO requires you
 to specify the columns before you specify the table body. When you start
 specifying cells, FOP requires that each row have the same number of cells
 as the table has columns (though you can have one column span cells).
 Other processors might permit an empty cell, but FOP does no thinking for
 you, so it requires that you spell out everything.

 In the following simple example, notice that the table-column elements and
 the table-body element are the immediate descendents (the children) of the
 table element. The rows and cells are and must be, because table-body has
 to contain them, deeper descendents (grandchildren and
 great-grandchildren, as it were).

 fo:table table-layout=fixed
   fo:table-column column-width=2in/
   fo:table-column column-width=2.5in/
   fo:table-column column-width=2in/
   fo:table-body
 fo:table-row
   fo:table-cell
 fo:block xsl:use-attribute-sets=footerleft
   Date prepared: xsl:value-of
 select=format-date(current-date(),'[D1] [MNn] [Y0001]')/
 /fo:block
   /fo:table-cell
   fo:table-cell
 fo:block xsl:use-attribute-sets=footercenter
   Confidential and Proprietary
 /fo:block
   /fo:table-cell
   fo:table-cell
 fo:block xsl:use-attribute-sets=footerright
   fo:page-number/
 /fo:block
   /fo:table-cell
 /fo:table-row
   /fo:table-body
 /fo:table

 HTH

 Jay Bryant
 Bryant Communication Services
 (on contract at Syngeristic Solution Technologies)

 -
 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 of Contents with leaders

2004-12-11 Thread J.Pietschmann
Talken, Patrick (AGRE) wrote:
Using fop 20.5 we have created a table of contents with paragraph
numbering, title, leaders (...) and page number. But to take the
link created with fo:basic-link we can only click on the paragraph
numbering or the title. How do you create the link so that by clicking
anywhere (on the paragraph numbering, title, leaders or the page number)
to take the link?
I'm afraid link hotspot areas are not generated for the leaders. Same
for page number citations and fo:character.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Table of Contents with leaders

2004-12-10 Thread Webmaster
!!!ATTENTION CE COURRIER N'EST PAS ARRIVE A DESTINATION!!!
Due a une très forte progression du SPAM sur notre boite aux lettres, nous vous 
prions de bien vouloir transférer votre courriel a notre nouvelle adresse: 
[EMAIL PROTECTED]
Merci de votre compréhension
Alacuisine.Net
!!!ATTENTION CE COURRIER N'EST PAS ARRIVE A DESTINATION!!!



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



Re: Table Cell with height=100%...

2004-11-28 Thread robert frapples
That is exactly what I am trying to do.  The reason is that I want the
borders for each cell to be seperated by a small margin.  I am able to
do this with padding and indents on the table-cell and an fo:block
with a border.


On Wed, 24 Nov 2004 22:59:54 +0100, Andreas L. Delmelle
[EMAIL PROTECTED] wrote:
  -Original Message-
  From: robert frapples [mailto:[EMAIL PROTECTED]
 
 
 Hi,
 
  I want several cells in a single column with set widths, non-uniform
  amounts of text, identical borders, and vertically aligned text. I
  have done everything except for the borders.  I don't see how to make
  uniform borders using padding and background colors. If you can show
  me an example of that, I would be appreciative.
 
 I'm a bit puzzled... It sounds like you want to use borders on the fo:block
 and make them look like they are specified on the fo:table-cell? Why not
 specify borders on the cells then?
 
 Greetz,
 
 Andreas

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



RE: Table Cell with height=100%...

2004-11-28 Thread Roland Neilands
Robert,

Try making the 'small margin' with thin table rows  columns.

Regards,
Roland 

 -Original Message-
 From: robert frapples [mailto:[EMAIL PROTECTED]
 Sent: Monday, 29 November 2004 1:52 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Table Cell with height=100%...
 
 
 That is exactly what I am trying to do.  The reason is that I want the
 borders for each cell to be seperated by a small margin.  I am able to
 do this with padding and indents on the table-cell and an fo:block
 with a border.
 
 
 On Wed, 24 Nov 2004 22:59:54 +0100, Andreas L. Delmelle
 [EMAIL PROTECTED] wrote:
   -Original Message-
   From: robert frapples [mailto:[EMAIL PROTECTED]
  
  
  Hi,
  
   I want several cells in a single column with set widths, non-uniform
   amounts of text, identical borders, and vertically aligned text. I
   have done everything except for the borders.  I don't see how to make
   uniform borders using padding and background colors. If you can show
   me an example of that, I would be appreciative.
  
  I'm a bit puzzled... It sounds like you want to use borders on the fo:block
  and make them look like they are specified on the fo:table-cell? Why not
  specify borders on the cells then?
  
  Greetz,
  
  Andreas
 


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



Re: Table Cell with height=100%...

2004-11-24 Thread J.Pietschmann
robert frapples wrote:
The issue here is that a fo:table:cell takes up the full height of
the containing fo:table-row, but the fo:block in the
fo:table-cell takes up only the height it needs to display the
content.  What is needed is a way to make the fo:block take up the
full height of the fo:table-cell when the height of the cell (and
row) is determined by the content of another block.
height=from-parent(height) does not work.
from-table-column() is not implemented.
height=100% does not work
display=absolute bottom=0in does not work
Has anybody come up with a way to make a fo:block take up the full
height of the containing fo:table-cell?
No way, the implementation of the height property for blocks is
rather incomplete. However, why do you think you need this? You
can set a background color or use a padding in the table cell
directly (unless you want to link to content of the cell).
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Table Cell with height=100%...

2004-11-24 Thread Andreas L. Delmelle
 -Original Message-
 From: robert frapples [mailto:[EMAIL PROTECTED]


Hi,

 I want several cells in a single column with set widths, non-uniform
 amounts of text, identical borders, and vertically aligned text. I
 have done everything except for the borders.  I don't see how to make
 uniform borders using padding and background colors. If you can show
 me an example of that, I would be appreciative.

I'm a bit puzzled... It sounds like you want to use borders on the fo:block
and make them look like they are specified on the fo:table-cell? Why not
specify borders on the cells then?

Greetz,

Andreas


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



RE: Table borders

2004-09-27 Thread Mark Donnelly
Forget my request for information. 

It was just a matter of playing with some of the table and table-cell
properties, namely setting the border-*-style attributes to solid.

eg

fo:table-cell border-before-style=solid border-after-style=solid
border-start-style=solid border-end-style=solid border-top-style=solid
border-bottom-style=solid border-left-style=solid
border-right-style=solid border-top-width=thin
border-bottom-width=thin border-left-width=thin
border-right-width=thin border-start-color=red border-end-color=red
border-left-color=red border-right-color=red border-before-width=thin
border-after-width=thin border-start-width=thin border-end-width=thin
border-after-color=red border-before-color=red border-top-color=red
border-bottom-color=red

It may be overkill but it got the borders printed ...

-Original Message-
From: Mark Donnelly [mailto:[EMAIL PROTECTED]
Sent: 27 September 2004 12:24
To: '[EMAIL PROTECTED]'
Subject: Table borders


Has anyone got an example of a table that prints out its borders.

Ive used a table example from the Apache website but I dont get any borders
shown in the output pdf. 

In addition I have specified the border-start-color, border-top-width, etc
to try and force a border to show but with no result.

Any ideas?



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

2004-09-27 Thread Paul Vinkenoog
Hi Mark,

 Has anyone got an example of a table that prints out its borders.

This (generated) one works for me:

fo:table border-before-width.conditionality=retain
  border-collapse=collapse
  border-left-style=solid border-right-style=solid
  border-top-style=solid border-bottom-style=solid
  border-left-width=0.5pt border-right-width=0.5pt
  border-top-width=0.5pt border-bottom-width=0.5pt
  border-left-color=black border-right-color=black
  border-top-color=black border-bottom-color=black
  table-layout=fixed width=100%

Perhaps border-style is missing in yours?


Greetings,
Paul Vinkenoog

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



RE: table processing warning

2004-09-27 Thread Eldho George
You can try this also

xsl:attribute-set name=table-structure
xsl:attribute name=table-layoutfixed/xsl:attribute
xsl:attribute name=space-before0pt/xsl:attribute
xsl:attribute name=space-after0pt/xsl:attribute   
xsl:attribute name=border2px/xsl:attribute
xsl:attribute name=border-styleoutset/xsl:attribute
xsl:attribute name=border-collapseseparate/xsl:attribute
xsl:attribute name=border-spacing2px/xsl:attribute
/xsl:attribute-set

fo:table xsl:use-attribute-sets=table-structure 
xsl:for-each select=tr|thead/tr|tbody/tr
xsl:sort select=count(td|th) data-type=number
order=descending/
xsl:if test=position()=1
xsl:for-each select=td|th
fo:table-column/
/xsl:for-each
/xsl:if
/xsl:for-each
/fo:table 
cheers
george

-Original Message-
From: James Steven [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 27, 2004 6:02 PM
To: [EMAIL PROTECTED]
Subject: table processing warning

Hello
When processing xml using FOP 0.20.5rc3a the command keeps returning two
warnings.  These are:

[WARNING] current implementation of tables requires a table-column for each
column, indicating column-width
[WARNING] Some static content could not fit in the area.

A pdf document is returned ok, but obviously there are formatting errors.  I
am interested in what might be causing the first of these.  There are
several tables in the xsl-fo which I have shown below and I have made sure
the number of table-columns and table-cells correspond and that each column
has a column width specified but this warning continues. What is it
referring to?

Thanks for any help.
James

fo:table table-layout=fixed
fo:table-column column-width=8mm /
fo:table-column column-width=90mm /
fo:table-column column-width=85mm /
fo:table-column column-width=30mm /
fo:table-column column-width=70mm /
fo:table-body
fo:table-row
fo:table-cell
  /fo:table-cell
fo:table-cell 
  /fo:table-cell
fo:table-cell 
  /fo:table-cell
fo:table-cell 
  /fo:table-cell
fo:table-cell 
  /fo:table-cell
/fo:table-row
/fo:table-body
/fo:table
fo:table table-layout=fixed
fo:table-column column-width=13mm /
fo:table-column column-width=23mm /
fo:table-column column-width=37mm /
fo:table-column column-width=37mm /
fo:table-column column-width=25mm /
fo:table-column column-width=18mm /
fo:table-column column-width=22mm /
fo:table-column column-width=25mm /
fo:table-column column-width=25mm /
fo:table-column column-width=11mm /
fo:table-column column-width=8mm /
fo:table-column column-width=16mm /
fo:table-column column-width=24mm /
fo:table-body

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

RE: Table with rounded corners

2004-09-10 Thread Daniel Easton
Title: RE: Table with rounded corners






Hi,


Sounds like you want a 3 by 3 cell table?


-

| | | |

| 1 | 2 | 1 |

-

| | | |

| | | |

| 2 | CONTENT | 2 |

| | | |

-

| | | |

| 1 | 2 | 1 |

-


With small graphics in cell type 1's and outside borders in cell type 2. The content cell will probably contain another table with te content formatted as required ?

Hope that helps


Daniel


-Original Message-

From: A. ROY [mailto:[EMAIL PROTECTED]]

Sent: 10 September 2004 12:51

To: [EMAIL PROTECTED]

Subject: Table with rounded corners



Hi all,


I'd like to draw tables with rounded corners. Who can give me ideas to to that in the best and more generalized way ?


Thanks

A. ROY 

-- 

___

Sign-up for Ads Free at Mail.com

http://promo.mail.com/adsfreejump.htm



-

To unsubscribe, e-mail: [EMAIL PROTECTED]

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






RE: Table with rounded corners

2004-09-10 Thread mathieu . fretiere
I'd like to draw tables with rounded corners.
It is possible to use SVG (vector graphic) in order to create a table : 
you can draw rounded corners, draw lines for the borders and insert text.
Then you can insert you graphic into your pdf.
I don't know if it's a good idea because drawing a table in SVG would be 
more complex than using a fo:table.

Mat

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



RE: Table-of-Contents Headlines

2004-08-30 Thread Pascal Sancho
Hi,
Hmm, when reading back the W3C sample, I have found a mistake:
You should replace the fo:simple-link element with the fo:basic-link one. 
Pascal

-Message d'origine-
De : Johannes Franz [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 30 août 2004 00:56
À : [EMAIL PROTECTED]
Objet : Re: Table-of-Contents Headlines

Hi Pascal,

did you ever try the example at this page? Somehow it doesn't seem to work.
I always get a java.lang.NullPointerException. Any idea what could be the 
reason?
I would be very glad, if someone could help me.

Greetings,
Johannes.
- Original Message -
From: Pascal Sancho [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 23, 2004 11:27 AM
Subject: RE: Table-of-Contents Headlines


Hi,
You can find an example it the W3C XSL recommandation, at
http://www.w3.org/TR/xsl/slice6.html#section-N13277-Inline-level-Formatting-
Objects.
There is an example of table of content, with XML, XSLT  XSLFO snips.

Pascal

-Message d'origine-
De : Johannes Franz [mailto:[EMAIL PROTECTED] Envoyé : lundi 23 août 2004 00:24 
À : [EMAIL PROTECTED] Objet : Re: Table-of-Contents Headlines

Do you have an example for a xslt document that creates a table-of-contents 
which is generated at the end of the document?

- Original Message -
From: Johannes Franz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 4:43 PM
Subject: Re: Table-of-Contents Headlines


 Ok, i'll try it. Thx for explanation.
 By the way do you know if it is possible and how to use the headline 
 function of word/rtf with XSL-FO/JFOR?
 - Original Message -
 From: Chris Bowditch [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 19, 2004 1:02 PM
 Subject: Re: Table-of-Contents Headlines


  Johannes Franz wrote:
   Hi is it possible to declare certain sentences as a headline and 
   generate autmatically a table-of-contents in JFOR/FOP?
   Perhaps somebody could send me an example.
 
  No this is not possible in general within XSL-FO. You can do 
  something
in
  XSLT. Using markers and page-number-citation its possible create a 
  table
 of
  Contents at back of document, but not at the front :-(
 
  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]




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




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



Re: Table-of-Contents Headlines

2004-08-29 Thread Johannes Franz
Hi Pascal,

did you ever try the example at this page? Somehow it doesn't seem to work.
I always get a java.lang.NullPointerException. Any idea what could be the
reason?
I would be very glad, if someone could help me.

Greetings,
Johannes.
- Original Message -
From: Pascal Sancho [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 23, 2004 11:27 AM
Subject: RE: Table-of-Contents Headlines


Hi,
You can find an example it the W3C XSL recommandation, at
http://www.w3.org/TR/xsl/slice6.html#section-N13277-Inline-level-Formatting-
Objects.
There is an example of table of content, with XML, XSLT  XSLFO snips.

Pascal

-Message d'origine-
De : Johannes Franz [mailto:[EMAIL PROTECTED]
Envoyé : lundi 23 août 2004 00:24
À : [EMAIL PROTECTED]
Objet : Re: Table-of-Contents Headlines

Do you have an example for a xslt document that creates a table-of-contents
which is generated at the end of the document?

- Original Message -
From: Johannes Franz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 4:43 PM
Subject: Re: Table-of-Contents Headlines


 Ok, i'll try it. Thx for explanation.
 By the way do you know if it is possible and how to use the headline
 function of word/rtf with XSL-FO/JFOR?
 - Original Message -
 From: Chris Bowditch [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 19, 2004 1:02 PM
 Subject: Re: Table-of-Contents Headlines


  Johannes Franz wrote:
   Hi is it possible to declare certain sentences as a headline and
   generate autmatically a table-of-contents in JFOR/FOP?
   Perhaps somebody could send me an example.
 
  No this is not possible in general within XSL-FO. You can do
  something
in
  XSLT. Using markers and page-number-citation its possible create a
  table
 of
  Contents at back of document, but not at the front :-(
 
  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]




-
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: Table-of-Contents Headlines

2004-08-23 Thread Pascal Sancho
Hi,
You can find an example it the W3C XSL recommandation, at 
http://www.w3.org/TR/xsl/slice6.html#section-N13277-Inline-level-Formatting-Objects.
There is an example of table of content, with XML, XSLT  XSLFO snips.

Pascal  

-Message d'origine-
De : Johannes Franz [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 23 août 2004 00:24
À : [EMAIL PROTECTED]
Objet : Re: Table-of-Contents Headlines

Do you have an example for a xslt document that creates a table-of-contents 
which is generated at the end of the document?

- Original Message -
From: Johannes Franz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 4:43 PM
Subject: Re: Table-of-Contents Headlines


 Ok, i'll try it. Thx for explanation.
 By the way do you know if it is possible and how to use the headline 
 function of word/rtf with XSL-FO/JFOR?
 - Original Message -
 From: Chris Bowditch [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 19, 2004 1:02 PM
 Subject: Re: Table-of-Contents Headlines


  Johannes Franz wrote:
   Hi is it possible to declare certain sentences as a headline and 
   generate autmatically a table-of-contents in JFOR/FOP?
   Perhaps somebody could send me an example.
 
  No this is not possible in general within XSL-FO. You can do 
  something
in
  XSLT. Using markers and page-number-citation its possible create a 
  table
 of
  Contents at back of document, but not at the front :-(
 
  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]




-
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-of-Contents Headlines

2004-08-22 Thread Johannes Franz
Do you have an example for a xslt document that creates a table-of-contents
which is generated at the end of the document?

- Original Message -
From: Johannes Franz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 4:43 PM
Subject: Re: Table-of-Contents Headlines


 Ok, i'll try it. Thx for explanation.
 By the way do you know if it is possible and how to use the headline
 function of word/rtf with XSL-FO/JFOR?
 - Original Message -
 From: Chris Bowditch [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Thursday, August 19, 2004 1:02 PM
 Subject: Re: Table-of-Contents Headlines


  Johannes Franz wrote:
   Hi is it possible to declare certain sentences as a headline and
   generate autmatically a table-of-contents in JFOR/FOP?
   Perhaps somebody could send me an example.
 
  No this is not possible in general within XSL-FO. You can do something
in
  XSLT. Using markers and page-number-citation its possible create a table
 of
  Contents at back of document, but not at the front :-(
 
  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]




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



Re: Table-of-Contents Headlines

2004-08-19 Thread Chris Bowditch
Johannes Franz wrote:
Hi is it possible to declare certain sentences as a headline and 
generate autmatically a table-of-contents in JFOR/FOP?
Perhaps somebody could send me an example.
No this is not possible in general within XSL-FO. You can do something in 
XSLT. Using markers and page-number-citation its possible create a table of 
Contents at back of document, but not at the front :-(

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


Re: Table-of-Contents Headlines

2004-08-19 Thread Johannes Franz
Ok, i'll try it. Thx for explanation.
By the way do you know if it is possible and how to use the headline
function of word/rtf with XSL-FO/JFOR?
- Original Message -
From: Chris Bowditch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 1:02 PM
Subject: Re: Table-of-Contents Headlines


 Johannes Franz wrote:
  Hi is it possible to declare certain sentences as a headline and
  generate autmatically a table-of-contents in JFOR/FOP?
  Perhaps somebody could send me an example.

 No this is not possible in general within XSL-FO. You can do something in
 XSLT. Using markers and page-number-citation its possible create a table
of
 Contents at back of document, but not at the front :-(

 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-row height

2004-08-09 Thread Alexander Lohse
Hi,
is there any way to do that in the current FOP version?
Regards,
Alex
Am 06.08.2004 um 22:24 schrieb J.Pietschmann:
Alexander Lohse wrote:
I am search for a way to correctly print on address-labels, which 
have fixed sizes.
Is there a way to stop FOP from resizing a table-row, when the 
content would need more height than specified?
No. You have to resort to an absolutely placed block-container.
There's still no clipping, you'll need some means to hide overflow.
J.Pietschmann

Alexander Lohse
(Entwicklungsleitung  Projektmanagement)
WebJazz Internet Suite
Human Touch Medienproduktion GmbH
Am See 1
17440 Klein Jasedow
Deutschland
Tel (0049) 38374-752-11 
Fax (0049) 38374-752-23
e-mail  [EMAIL PROTECTED]
Internethttp://www.webjazz.de

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


Re: table-row height

2004-08-09 Thread J.Pietschmann
Alexander Lohse wrote:
is there any way to do that in the current FOP version?
To do what?
Methods for hiding overflow vary depending on the problem
at hand. Appraches include using another absolutely
positioned block container with non-transparent background,
graphics, especially SVG graphics, exploiting table cell
overflows and region overlaps.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: table-row height

2004-08-06 Thread J.Pietschmann
Alexander Lohse wrote:
I am search for a way to correctly print on address-labels, which have 
fixed sizes.
Is there a way to stop FOP from resizing a table-row, when the content 
would need more height than specified?
No. You have to resort to an absolutely placed block-container.
There's still no clipping, you'll need some means to hide overflow.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: table height problem

2004-07-28 Thread Chris Bowditch
Chandrasekhar Sanku wrote:
snip/
   I am creating a pdf using fop. In the generated pdf, the height of 
the table is stretched very long even the content is small.

   Why this happened?
   Does anybody faced this problem?
No, I havent seen this problem. To help us help you, please post a *small* 
snippet of your FO showing the table with the problem.

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


Re: Table borders problem

2004-07-27 Thread J.Pietschmann
Alain ROY wrote:
I want to generate a table with a fixed height (4cm), then I want to
draw borders around the table, for each column (because I want the
vertical lines to be drawed to the bottom of the table even if there
is only one or two rows on my table), between header and body, then I
want a grey background for the header. My problem is when I define
the header background, the vertical lines disappears behind it. If I
define a border for the header cells to redraw those lines, they
aren't aligned with the columns lines of the body. Does anybody knows
if it's possible to draw columns borders over the background or how
to align cells borders with columns borders ?
There are numerous problems with table column and row borders,
I'm surprised there is something working at all. There are
substantial problems with cell borders too, but they can be
worked around, usually.
Either use cell borders exclusively, or use an outer table
with one row and as much columns as your table should have
and with left and right cell borders only.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: table spanned over a 2 columns page

2004-07-12 Thread Chris Bowditch
Pascal Sancho wrote:
snip/
fo:flow flow-name=xsl-region-body
  ...
  fo:table span=all
...
   /fo:table
  ...
/fo:flow
FOP doesnt support span=all on fo:table, only on fo:block elements that are 
direct descendents of fo:flow.

snip/
I wonder wether it is a normal behaviour (I've checked the xsl rec, and 
I have understood that fo:table should be handled as a fo:block) or not.
In the 2nd case, this should be a bug.
Why should this be a bug? span=all works on a block, and you get the result 
you want. I dont see the problem?

Chris
-
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-layout=fixed (xslfo / css difference)

2004-06-07 Thread Chris Bowditch
Philippe PITHON wrote:
I noted a difference in operation between the xslfo/fop and css/ie of 
function table-layout=fixed
What makes you think they should be the same? XSL-FO is based on CSS, but 
there are differences.

snip/
With FOP, the width of contents of a table has priority
I'm not quite sure what you mean?
In CSS, the width of a table is really fixed (even if the contents have 
an important table)
Sorry I dont understand what you mean.
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

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]



RE: Table break-after/ break-before page add extra blank pages

2004-02-25 Thread Chanaka Amarasekara
Hi,

I'm using FOP 0.20.5. I found out that if you do one of the following it
will solve this problem,
1) to wrap the fo:table around a fo:block and put the page-break to that
(Bug 7487)
2) enter the entry force-page-count=no-force to every fo:page-sequence.
(http://xml.apache.org/fop/faq.html#blank-page-between-page-sequences)


unfortunately, non of these worked but maybe it might work for you. Any
ideas why it not working.

Regards,
Chanaka


On Thu, 2004-02-19 at 17:45, J.Pietschmann wrote:
 Chanaka Amarasekara wrote:
  I'm using the Apache FOP to create a PDF file. I'm having a problem in
my
  XSL file, where when I add a  break-after = page for a table it adds an
  extra blank page to the end and if I have a break-before = page it will
add
  an extra blank page to the beginning.

 Yes, both are bugs. Getting rid of the blank page at the beginning
 would require fixing the is-first-in-area code. Getting rid of the
 trailing blank page is more difficult,

And all this time I thought it was MY fault!

--
John Austin [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: Table break-after/ break-before page add extra blank pages

2004-02-20 Thread John Austin
On Thu, 2004-02-19 at 17:45, J.Pietschmann wrote:
 Chanaka Amarasekara wrote:
  I'm using the Apache FOP to create a PDF file. I'm having a problem in my
  XSL file, where when I add a  break-after = page for a table it adds an
  extra blank page to the end and if I have a break-before = page it will add
  an extra blank page to the beginning. 
 
 Yes, both are bugs. Getting rid of the blank page at the beginning
 would require fixing the is-first-in-area code. Getting rid of the
 trailing blank page is more difficult, 

And all this time I thought it was MY fault!

-- 
John Austin [EMAIL PROTECTED]

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



Re: Table Header after Pagebreak

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

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


Re: Table break-after/ break-before page add extra blank pages

2004-02-19 Thread J.Pietschmann
Chanaka Amarasekara wrote:
I'm using the Apache FOP to create a PDF file. I'm having a problem in my
XSL file, where when I add a  break-after = page for a table it adds an
extra blank page to the end and if I have a break-before = page it will add
an extra blank page to the beginning. Is there a way to solve this problem
(a possible workaround or a modification to the FOP)?
Yes, both are bugs. Getting rid of the blank page at the beginning
would require fixing the is-first-in-area code. Getting rid of the
trailing blank page is more difficult, probably impossible with the
design in the maintenance branch.
The recommended work around is to avoid inserting page breaks which
create blank pages at the XSLT level.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Table columns with custom font incorrectly aligned

2003-12-17 Thread Chris Bowditch
Dennis Myrén wrote:
snip/
I used the PFMReader utility to generate XML metrics files from these 3 
different font metrics files (PFM files).
snip/
My problem is, the columns are not properly aligned, a right aligned 
column gets to look something like this:
snip/
I tested with a base 14 font, no problems.
Could it be that the generated font metrics is incorrect?
Yes, I believe the current PFMReader ignores the PFB file which has some 
 parts of the font metrics in them.

Chris

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


RE: RE: Table columns with custom font incorrectly aligned

2003-12-17 Thread Dennis Myrén
 Could it be that the generated font metrics is incorrect?

 Yes, I believe the current PFMReader ignores the PFB file which has some 
 parts of the font metrics in them.

Ok.
Is there any workaround? Any advises?

Thank you.

Regards,
Dennis JD Myrén
Developer
Oslo Kode Bureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED] 
Sent: 17. desember 2003 12:11
To: [EMAIL PROTECTED]
Subject: Re: Table columns with custom font incorrectly aligned

Dennis Myrén wrote:

snip/

 I used the PFMReader utility to generate XML metrics files from these 3 
 different font metrics files (PFM files).

snip/

 My problem is, the columns are not properly aligned, a right aligned 
 column gets to look something like this:

snip/

 I tested with a base 14 font, no problems.
 
 Could it be that the generated font metrics is incorrect?

Yes, I believe the current PFMReader ignores the PFB file which has some 
  parts of the font metrics in them.

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 columns with custom font incorrectly aligned

2003-12-17 Thread Jeremias Maerki
Nope. You're confusing things, I'm afraid. It's correct that some metric
information needed by FOP is not present in PFM files, only in PFB (but
which are currently not parsed). The problem here is most probably
kerning. We've had that problem before. I just can't find the right
thread right now. I think Jörg had an explanation (but I don't remember
it). I used to propose to manually remove the kerning elements in the
generated XML font metric file. This disables kerning for this font but
normally solves the alignment problem.

On 17.12.2003 12:10:36 Chris Bowditch wrote:
  Could it be that the generated font metrics is incorrect?
 
 Yes, I believe the current PFMReader ignores the PFB file which has some 
   parts of the font metrics in them.

Jeremias Maerki


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



RE: Table columns with custom font incorrectly aligned

2003-12-17 Thread Dennis Myrén
I used to propose to manually remove the kerning elements in the generated 
XML font metric file. This disables kerning for this font but normally 
solves the alignment problem.

I like that proposal.
Works like a charm.

Thank you!


Regards,
Dennis JD Myrén
Developer
Oslo Kode Bureau
Tel:  (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no

-Original Message-
From: Jeremias Maerki [mailto:[EMAIL PROTECTED] 
Sent: 17. desember 2003 13:09
To: [EMAIL PROTECTED]
Subject: Re: Table columns with custom font incorrectly aligned

Nope. You're confusing things, I'm afraid. It's correct that some metric
information needed by FOP is not present in PFM files, only in PFB (but
which are currently not parsed). The problem here is most probably
kerning. We've had that problem before. I just can't find the right
thread right now. I think Jörg had an explanation (but I don't remember
it). I used to propose to manually remove the kerning elements in the
generated XML font metric file. This disables kerning for this font but
normally solves the alignment problem.

On 17.12.2003 12:10:36 Chris Bowditch wrote:
  Could it be that the generated font metrics is incorrect?
 
 Yes, I believe the current PFMReader ignores the PFB file which has some 
   parts of the font metrics in them.

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]



Re: table-cell breaking across pages

2003-12-02 Thread Roland Schroth
 Was wonder how to keep the contents of a table-cell from breaking
 across pages when the table cell contains several paragraphs blocks.

Try this:

fo:table-row keep-together.within-column=always
...

This will prevent the content of this row from getting broken apart at page
breaks.
If it does not fit onto the rest of the page, the complete row content will
start on the next page.
Of course, if the content is too large to fit onto a single page it will
then be broken nevertheless.

As the documentation says, this only works in table-row elements at the
moment:
http://xml.apache.org/fop/compliance.html#fo-property-keep-together

If (for some reason) you want to apply this only to a single cell instead of
a complete row,
use a nested table here with this setting aplied to it.

Roland



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



Re: table-cell breaking across pages

2003-12-02 Thread Will Gilbert

Was wonder how to keep the contents of a table-cell from breaking
across pages when the table cell contains several paragraphs blocks.
Try this:
fo:table-row keep-together.within-column=always
...
This did the trick.   Viel Dank.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: table-cell breaking across pages

2003-12-01 Thread Andreas L. Delmelle
 -Original Message-
 From: Will Gilbert [mailto:[EMAIL PROTECTED]

 Was wonder how to keep the contents of a table-cell from breaking
 across pages when the table cell contains several paragraphs blocks.

 I played with many combinations of keep-with..., widow/orphans that
 my head is spinning. The FOP examples are oriented towards cell with
 simple contents.


Ouch... _keeps_. (they're one of the main reasons for the redesign effort)

Currently, they *only* work for table-rows (-- so the spinning should go
away soon ;) )

In short, the only thing you can do in this case is to put
keep-with-next=always only on those rows you suspect are going to be
broken.

I guess you already read this one...
http://xml.apache.org/fop/faq.html#keep-with


Hope this helps!

Greetz,

Andreas


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



Re: table-cell breaking across pages

2003-12-01 Thread J.Pietschmann
Will Gilbert wrote:
I played with many combinations of keep-with..., widow/orphans that 
Widows/orphans are not implemented.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: table row color changing

2003-09-19 Thread J.Pietschmann
Ramon Maria Gallart wrote:
Can anyone tell me the way to change the colors of a table rows? I mean,
the first in a color the next with other color, the next one with the
first color and so on... I've tried to do it using an external variable
but when i change it inside the loop it seems not to recognize it.
The usual VFAQ, it comes up on the XSL list every couple of days,
see for example
 http://www.dpawson.co.uk/xsl/sect2/N7450.html#d4e82
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: table row color changing

2003-09-19 Thread J.Pietschmann
J.Pietschmann wrote:
see for example
 http://www.dpawson.co.uk/xsl/sect2/N7450.html#d4e82
Ouch, misleading example. The key phrase is grouping by position,
and more appropriate examples would be
  http://www.dpawson.co.uk/xsl/sect2/N6280.html#d6777e235
  http://www.dpawson.co.uk/xsl/sect2/N7450.html#d4e484
I'm sure there are even better examples in the XSL FAQ,
unfortunately, the FAQ isn't organized well for finding them.
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: table row color changing [spam-BCC][Faked From Address][html- removed]

2003-09-19 Thread Sells, Fred
according to the O'reilly book, the only way to increment a variable is to
call a template recursively.  I think I've seen an example of what you want
where they used a count and the mod function to alternate row color, but
don't recall the code.

-Original Message-
From: Ramon Maria Gallart [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 6:03 AM
To: [EMAIL PROTECTED]
Subject: table row color changing [spam-BCC][Faked From
Address][html-removed]
Importance: Low


Hi all.
 
Can anyone tell me the way to change the colors of a table rows? I mean,
the first in a color the next with other color, the next one with the
first color and so on... I've tried to do it using an external variable
but when i change it inside the loop it seems not to recognize it.
 
Thanks a lot.
 
Ramon Maria.

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



Alternating fo:table-row color CODE (Re: table row color changing)

2003-09-19 Thread Clay Leeds
Ramon,
Hope this helps. Near the top of my xsl-fo document I set some 
xsl:variable so I can change the color throughout my FO (I also set up 
my fonts, font-size, heading font-size, page background-color, etc. ;-p):

!-- === BEGIN: set up variables === --
xsl:variable name=varNormalBGColor#ff/xsl:variable
!-- varNormalBGColor | background-color for EOR - default:#ff 
(white) --
xsl:variable name=varAccentBGColor#cc/xsl:variable
!-- varAccentBGColor | background-color for highlights (e.g., 
alternating ICD9/Bill Detail lines.) - default:#cc (teal) --
!-- === END: set up variables === --

Then, for the fo:table-row elements I want to color, I process an 
xsl:for-each statement with this as the fo:table-row element:
		xsl:for-each select={## INSERT YOUR INCREMENTER ##}
  fo:table-row
xsl:attribute name=background-color
  xsl:choose
xsl:when test=(position() mod 2) = 0xsl:value-of 
select=$varAccentBGColor//xsl:when
xsl:otherwisexsl:value-of 
select=$varNormalBGColor//xsl:otherwise
  /xsl:choose
/xsl:attribute
fo:table-cell
  fo:block keep-with-next.within-page=always
xsl:value-of select={## INSERT SELECT ITEM FOR CELL 1 ##}/
  /fo:block
/fo:table-cell
fo:table-cell
  fo:block padding-left=6pt keep-with-next.within-page=always
fo:inline font-size=4pt#160;/fo:inline
xsl:value-of select={## INSERT SELECT ITEM FOR CELL 2 ##}/
  /fo:block
/fo:table-cell
  /fo:table-row
/xsl:for-each

Hope this helps!
Web Maestro Clay
Sells, Fred wrote:
according to the O'reilly book, the only way to increment a variable is to
call a template recursively.  I think I've seen an example of what you want
where they used a count and the mod function to alternate row color, but
don't recall the code.
-Original Message-
From: Ramon Maria Gallart [mailto:[EMAIL PROTECTED]
Sent: Friday, September 19, 2003 6:03 AM
To: [EMAIL PROTECTED]
Subject: table row color changing [spam-BCC][Faked From
Address][html-removed]
Importance: Low
Hi all.
 
Can anyone tell me the way to change the colors of a table rows? I mean,
the first in a color the next with other color, the next one with the
first color and so on... I've tried to do it using an external variable
but when i change it inside the loop it seems not to recognize it.
 
Thanks a lot.
 
Ramon Maria.

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


RE: table-row borders

2003-07-15 Thread Andreas Delmelle
Title: fo:table-row borders



-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

fo:table-row bordersyup! row-border support isn't implemented. either
use the cell-border or the table-border itself...

( dunno for sure, but might have to do with support for cells
spanning multiple rows )

greetz

ald
  -Original Message-
  From: Sander, Stefan [mailto:[EMAIL PROTECTED]
  Sent: dinsdag 15 juli 2003 14:34
  To: '[EMAIL PROTECTED]'
  Subject: fo:table-row borders


  Hi, 

  mot sure if this has been asked before: 

  I am trying to set borders on a table row. 
  According to the sample border.fo this should look like this: 

  --snip 

  --snip 

  However, this specific border does not show up in a PDF document
generated with 0.20.5rc3a. 

  This has been supported with Verion 0.17.x which I am currently
upgrading from. Has the support for row level borders been removed on
purpose or am I doing something wrong? Column and cell level borders
seem to work fine.



  Thanks, 
  Stefan 

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 7.0.3 for non-commercial use 

iQA/AwUBPxQAS9Bw/OvTa+XUEQKRLQCfSBuTIflVALGD8bE1/FhqWagUv20AnjRd
xY/st1JGpjL/EY/iwICJhfKY
=FPm/
-END PGP SIGNATURE-



PGPexch.htm.asc
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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

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

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


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

Any ideas or comments appreciated.

David 


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

FOP 0.20.4

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

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

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

This works fine:

fo:table-header
fo:table-row

fo:table-cell border-width=0.5mm

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

/fo:table-cell

fo:table-cell border-width=0.5mm

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

/fo:table-cell

fo:table-cell border-width=0.5mm

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

/fo:table-cell

fo:table-cell border-width=0.5mm

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

/fo:table-cell

fo:table-cell border-width=0.5mm

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

/fo:table-cell

fo:table-cell border-width=0.5mm

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

/fo:table-cell

fo:table-cell border-width=0.5mm

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

/fo:table-cell

fo:table-cell border-width=0.5mm

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

/fo:table-cell

fo:table-cell border-width=0.5mm

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

/fo:table-cell

fo:table-cell border-width=0.5mm

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

Re: Table Cell with height=100%...

2003-06-10 Thread J.Pietschmann
Jason Vincent wrote:
Below is some xsl-fo that demonstrates what I'm
talking about... I want the border around the Notes:
to be the same height as the border around the text.
Your code produces a solid red border around the cell,
the same height as other cells, is this not what you want?
I tried setting the height of the block and the cell
to be 100%, but that didn't work. FOP complained about
having no conversion for %
Percentages are not yet implemented consistently.
J.Pietschmann

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


Re: Table aligning right...

2003-06-09 Thread J.Pietschmann
Kodandapani A. wrote:
Is there any way to align table right with width 45%.
The best way is to use a 55% column like
 fo:table table-layout=fixed width=100%
   fo:table-column column-width=proportional-column-width(55)/
   fo:table-column column-width=proportional-column-width(45)/
   fo:table-body...
fo:table start-indent=(8.5in - 0.6in - 0.6in) - (((8.5in - 0.6in - 0.6in) *
You can't indent tables, this will indent the content in the table
cells, probably not what you want.
J.Pietschmann

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


Re: Table aligning right...

2003-06-04 Thread Jeremias Maerki
Easiest is probably using nested tables. First establish a blind table
with two columns and put your 45%-table in a table-cell in the second
column.

Maybe the following link could also provide some inspiration: 
http://xml.apache.org/fop/fo.html#fo-center-table-horizon

I hope that helps.

On 04.06.2003 14:55:02 Kodandapani A. wrote:
 I have created a table with 45% of the total page width, which should
 be aligned right. The problem is, the table comes-up with 100% width, 
 when pdf get generated.
 
 Following is the xsl snippet which i am trying,
 
 fo:table start-indent=(8.5in - 0.6in - 0.6in) - (((8.5in - 0.6in - 0.6in) *
 45) div 100) text-align=right width=45% space-before.optimum=1pt
 space-after.optimum=2pt
 
 Is there any way to align table right with width 45%.


Jeremias Maerki


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



RE: Table of content and indexes

2003-05-23 Thread John Marshall
Hi

There's a good description in chapter 9 of XSL-FO by Dave Pawson, O'Reilly, 
ISBN 0-596-00355-2.

John Marshall
Accurate Software

80 Peach Street, Wokingham, Berkshire, RG40 1XH, UK.
Tel: +44 (0)118 977 3889
Fax: +44 (0)118 977 1260
http://www.accuratesoftware.com http://www.accuratesoftware.com




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 23 May 2003 09:39
To: [EMAIL PROTECTED]
Subject: Table of content and indexes


Hi,

I've been searching how to add a table of content and an index in my PDF
document with FOP but I didn't succeed. Could somebody help me?

Cheers

Manu




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



The UK office of Accurate Software has moved to the following 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.


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



RE: Table of content and indexes

2003-05-23 Thread Gustavo Torreti
You can find a very nice example at antennahouse

http://www.antennahouse.com/XSLsample/XSLsample.htm

Check the pdf. It mainly talks about xsl-fo, but you'll find a
TOC implemented there also.

Hope that helps,

Gustavo

--
In the brightest day, In the blackest night,
No evil shall escape my sight
May those who worship evil's might
Beware of the power of my light


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 23, 2003 05:39
To: [EMAIL PROTECTED]
Subject: Table of content and indexes

Hi,

I've been searching how to add a table of content and an index in my PDF
document with FOP but I didn't succeed. Could somebody help me?

Cheers

Manu




-
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 in xsl-region-before

2003-05-21 Thread Rob Stote
Title: RE: table in xsl-region-before





David: 


 Are you xsl:apply-templates mode=header/ or do you want to  xsl:call-template name=/ try naming you template and calling  from within the table.

Just a guess


Rob


-Original Message-
From: Holk, David A [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, May 21, 2003 11:36 AM
To: '[EMAIL PROTECTED]'
Subject: fo:table in xsl-region-before


The code below causes FOP to throw this exception:


Currently only table rows are supported in table body, header, and footer.



I am using the same technique in another table in the xsl-region-body
without a problem. Does FOP have a problem with tables in the region-before?



Any comments or suggestions appreciated.


Dave



 fo:static-content flow-name=xsl-region-before
  fo:table
   fo:table-column column-width=80mm/
   fo:table-column column-width=80mm/
   fo:table-column column-width=80mm/
   fo:table-body
xsl:apply-templates mode=header/
   /fo:table-body
  /fo:table
 /fo:static-content


 xsl:template match=header-column mode=header
  fo:table-cell border-width=0.5mm
   fo:block font-size=9pt
xsl:value-of select=./
   /fo:block
  /fo:table-cell
 /xsl:template



LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.

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





RE: table in xsl-region-before

2003-05-21 Thread Holk, David A
Title: RE: table in xsl-region-before



As 
Johannes pointed out, I just missed my fo:table-row declaration (doh!). 


The 
"mode=" attribute of apply-templates has worked perfectly so far for directing 
matches to a particular table (of several in the page).I hope I am not 
grossly misusing it.

  -Original Message-From: Rob Stote 
  [mailto:[EMAIL PROTECTED]Sent: Wednesday, May 21, 2003 
  11:49 AMTo: '[EMAIL PROTECTED]'Subject: RE: table 
  in xsl-region-before
  David: 
   Are you 
  "xsl:apply-templates mode="header"/" or do you want to 
   "xsl:call-template name=""/" try 
  naming you template and calling  from within the 
  table.
  Just a guess 
  Rob 
  -Original Message- From: Holk, 
  David A [mailto:[EMAIL PROTECTED]] 
  Sent: Wednesday, May 21, 2003 11:36 AM 
  To: '[EMAIL PROTECTED]' Subject: fo:table in xsl-region-before 
  The code below causes FOP to throw this exception: 
  "Currently only table rows are supported in table body, 
  header, and footer." 
  I am using the same technique in another table in the 
  xsl-region-body without a problem. Does FOP have a 
  problem with tables in the region-before? 
  Any comments or suggestions appreciated. 
  Dave 
   fo:static-content flow-name="xsl-region-before" 
   
   fo:table  
   
   fo:table-column 
  column-width="80mm"/  
   
   fo:table-column 
  column-width="80mm"/  
   
   fo:table-column 
  column-width="80mm"/  
   
   fo:table-body 
   
   
   
   xsl:apply-templates mode="header"/ 
   
   
   /fo:table-body 
   
   /fo:table  
  /fo:static-content 
   xsl:template 
  match="header-column" mode="header" 
   
   fo:table-cell 
  border-width="0.5mm"  
   
   fo:block 
  font-size="9pt"  
   
   
   xsl:value-of 
  select="."/  
   
   /fo:block  
   /fo:table-cell 
   /xsl:template 
  LEGAL NOTICE Unless expressly stated 
  otherwise, this message is confidential and may be privileged. It is intended 
  for the addressee(s) only. Access to this E-mail by anyone else is 
  unauthorized. If you are not an addressee, any disclosure or copying of the 
  contents of this E-mail or any action taken (or not taken) in reliance on it 
  is unauthorized and may be unlawful. If you are not an addressee, please 
  inform the sender immediately.
  - 
  To unsubscribe, e-mail: 
  [EMAIL PROTECTED] For additional 
  commands, e-mail: [EMAIL PROTECTED] 



Re: table-cell suggestion

2003-05-15 Thread Louis . Masters

What version of FOP is this?  I currently have developers that do this all
of the time and it looks like FOP just ignores it.  I am using FOP
0.20.3.

If a newer version if throwing an exception it would be good to know now.

-Lou




  
[EMAIL PROTECTED]   
  
rama.com To: [EMAIL PROTECTED]  

 cc:
  
05/15/2003   Subject: table-cell suggestion 
  
11:45   
  
Please  
  
respond to  
  
fop-user
  

  

  




I was getting a crash in FOP.
This happened when I would declare a table with a given amount of columns,
and
one of my rows did not specify enough columns.

I would get a npe on the getTableCell method.
Perhaps the code can be modified to catch this exception and proceed with
the
processing of the document.
Catch the exception and continue processing as if the missing table cells
were
present and empty?

Just some thoughts.  Sorry no code.

For example:

fo:table
fo:table-column column-width=5cm/
fo:table-column column-width=5cm/

fo:table-body
fo:table-row
fo:table-cell
Column 1
/fo:table-cell
/fo:table-row
/fo:table-body

/fo:table

-
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-cell suggestion

2003-05-15 Thread rhodespc
FOP-0.20.5rc2


Quoting [EMAIL PROTECTED]:

 
 What version of FOP is this?  I currently have developers that do this
 all
 of the time and it looks like FOP just ignores it.  I am using FOP
 0.20.3.
 
 If a newer version if throwing an exception it would be good to know
 now.
 
 -Lou
 
 
 
 
  
 [EMAIL PROTECTED]   
  
 rama.com To: [EMAIL PROTECTED]
  
  cc:
  
 05/15/2003   Subject: table-cell
 suggestion  
 
 11:45   
  
 Please  
  
 respond to  
  
 fop-user
  
 
  
 
  
 
 
 
 
 I was getting a crash in FOP.
 This happened when I would declare a table with a given amount of
 columns,
 and
 one of my rows did not specify enough columns.
 
 I would get a npe on the getTableCell method.
 Perhaps the code can be modified to catch this exception and proceed
 with
 the
 processing of the document.
 Catch the exception and continue processing as if the missing table
 cells
 were
 present and empty?
 
 Just some thoughts.  Sorry no code.
 
 For example:
 
 fo:table
 fo:table-column column-width=5cm/
 fo:table-column column-width=5cm/
 
 fo:table-body
 fo:table-row
 fo:table-cell
 Column 1
 /fo:table-cell
 /fo:table-row
 /fo:table-body
 
 /fo:table
 
 -
 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: table-cell suggestion

2003-05-15 Thread rhodespc
I will try to reduce it to a test case.
I had a 583k fo file and it was crashing.
Because the stack trace indicated a problem with the table cell, I verified my 
cells.  That's when I discovered that in some cases, I only would output one 
column in a multi column table.

After fixing the columns (adding some), the crash did not occur.

One small point that I forgot to add is an attribute on my fo:table element.

Did you try
fo:table table-layout=fixed
...

/fo:table

 



Quoting Ben Galbraith [EMAIL PROTECTED]:

 FYI -- works for me just fine on FOP 20.5RC2
 
 Ben
 
 [EMAIL PROTECTED] wrote:
 
  FOP-0.20.5rc2
  
  
  Quoting [EMAIL PROTECTED]:
  
  
 What version of FOP is this?  I currently have developers that do
 this
 all
 of the time and it looks like FOP just ignores it.  I am using FOP
 0.20.3.
 
 If a newer version if throwing an exception it would be good to know
 now.
 
 -Lou
 
 
 
   
  
  
 [EMAIL PROTECTED] 
  
  
 rama.com To:
 [EMAIL PROTECTED]
  
  cc:  
  
  
 05/15/2003   Subject: table-cell
 suggestion
  
 
 11:45 
  
  
 Please
  
  
 respond to
  
  
 fop-user  
  
  
   
  
  
   
  
  
 
 
 
 
 I was getting a crash in FOP.
 This happened when I would declare a table with a given amount of
 columns,
 and
 one of my rows did not specify enough columns.
 
 I would get a npe on the getTableCell method.
 Perhaps the code can be modified to catch this exception and proceed
 with
 the
 processing of the document.
 Catch the exception and continue processing as if the missing table
 cells
 were
 present and empty?
 
 Just some thoughts.  Sorry no code.
 
 For example:
 
 fo:table
 fo:table-column column-width=5cm/
 fo:table-column column-width=5cm/
 
 fo:table-body
 fo:table-row
 fo:table-cell
 Column 1
 /fo:table-cell
 /fo:table-row
 /fo:table-body
 
 /fo:table
 
 -
 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]
  
  
 
 
 -
 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--row background

2003-04-24 Thread J.Pietschmann
Torsten Erler wrote:
I need help again with FOPing. I've a table with many rows. Each second row
has a gray colored background.
Now it appears that the gray backgound overlaps the table border
(approximately for a half point) and between the column borders are breaks
(also 1/2 point) on every top of a colored row.
I've set the border on the fo:table around and on the last column at the
left side
++---+
||   |
||===|
||   |
||===|
++---+
What's going wrong?
The implementation for borders on table cells has quite a few drawbacks.
It should help a bit to use one color as the background color of the
table and the other color as background for the cells in every other cell.
Gaps between columns can be filled with appropriate borders of the
background color.
J.Pietschmann

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


Re: table-column width

2003-04-10 Thread Chris Bowditch
From: Todtenhaupt, Susann [EMAIL PROTECTED]
Is it possible to allocate a column-width a value like 100%?
inline-progression-dimension fop does not support, does it?
Currently FOP only supports tables with fixed (pre-determined) column 
woidths, e.g. 5in, 2cm, etc. Therefore percentages are not supported

_
On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: table-column width

2003-04-10 Thread Harm Kok
This is not true. FOP only supports Fixed table-widths, but columns 
widths can be set relative. You can do this by setting:
column-width=proportional-column-width(1)

If you have to columns with a 25%, 75% width you can set:
fo:table-column column-number=1 
column-width=proportional-column-width(1)/
fo:table-column column-number=2 
column-width=proportional-column-width(3)/

Regards,
Harm Kok
Chris Bowditch wrote:
From: Todtenhaupt, Susann [EMAIL PROTECTED]
Is it possible to allocate a column-width a value like 100%?
inline-progression-dimension fop does not support, does it?
Currently FOP only supports tables with fixed (pre-determined) column 
woidths, e.g. 5in, 2cm, etc. Therefore percentages are not supported

_
On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile
-
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-column width

2003-04-10 Thread John Marshall
Hi

I find fo:table-column column-width=proportional-column-width(n)/ (n is 
numeric) is well supported and useful (FOP-0.20.4 and FOP-0.20.5rc). This has 
the effect of allocating percentage widths as required.

Is this helpful?

John Marshall

-Original Message-
From: Chris Bowditch [mailto:[EMAIL PROTECTED]
Sent: 10 April 2003 11:19
To: [EMAIL PROTECTED]
Subject: Re: table-column width


From: Todtenhaupt, Susann [EMAIL PROTECTED]

Is it possible to allocate a column-width a value like 100%?
inline-progression-dimension fop does not support, does it?


Currently FOP only supports tables with fixed (pre-determined) column
woidths, e.g. 5in, 2cm, etc. Therefore percentages are not supported

_
On the move? Get Hotmail on your mobile phone http://www.msn.co.uk/mobile


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






Accurate Software Ltd 

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

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.


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



Re: table footer placement

2003-03-31 Thread Clay Leeds
Mike,
This may not help, but have you tried 0.20.5rc2 and/or 0.20.4? Perhaps 
one of those may behave the way it should.

Partridge, Michael wrote:
What actually happens, however, is that the last row of the table is
on the first page, and the second page has the table header and footer
only. I'm using fop 0.20.5rc - is the message implemented but not the
functionality?

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

2003-03-18 Thread Balaji Loganathan
Hi Rob,
  Thanks for taking time to reply me.My question was
bit different than to your specific reply, and I
re-posted it again.
Thanks again.
Regards
Balaji

 --- Rob Stote [EMAIL PROTECTED] wrote: 
Balaji
 
 I did a quick test, I never nest tables, as a
 personal preference, easy to
 debug, read etc. FOP does say that the numbers
 produced from their debug
 statements should not be used comparatively. Hope
 this helps:
 
 File attached
 
 RESULTS FOR CALLED TABLES:
 
 703 [main] DEBUG RenderPDF  - Avg render time:
 328ms/page
 640 [main] DEBUG RenderPDF  - Avg render time:
 289ms/page
 703 [main] DEBUG RenderPDF  - Avg render time:
 320ms/page
 656 [main] DEBUG RenderPDF  - Avg render time:
 312ms/page
 625 [main] DEBUG RenderPDF  - Avg render time:
 297ms/page
 AVRG: 309.2ms/page
 
 RESULTS FOR NESTED TABLES:
 
 766 [main] DEBUG RenderPDF  - Avg render time:
 312ms/page
 609 [main] DEBUG RenderPDF  - Avg render time:
 281ms/page
 688 [main] DEBUG RenderPDF  - Avg render time:
 312ms/page
 609 [main] DEBUG RenderPDF  - Avg render time:
 281ms/page
 641 [main] DEBUG RenderPDF  - Avg render time:
 305ms/page
 AVRG: 298.2ms/page
 
 I hope this is what you are looking for.
 
 Rob
 -Original Message-
 From: Balaji Loganathan
 [mailto:[EMAIL PROTECTED] 
 Sent: Monday, March 17, 2003 10:33 AM
 To: fop
 Subject: fo:table
 
 Hi,
 which option is better and fast for building a
 table? 
 
 1.Construct one table with 8 rows, 2 columns.(most
 of
 the rows have table inside table).
 
 2.Construct 8 individual tables.(then insert table
 inside table).
 
 I hope my question is clear ??
 
 Regards
 Balaji
 
 http://mobile.yahoo.com.au - Yahoo! Mobile
 - Check  compose your email via SMS on your Telstra
 or Vodafone mobile.
 

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

 ATTACHMENT part 2 application/octet-stream
name=hockeycalledtable.xsl


 ATTACHMENT part 3 application/octet-stream
name=hockey2nested.xsl


 ATTACHMENT part 4 application/octet-stream
name=hockey2nested.xml

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

http://mobile.yahoo.com.au - Yahoo! Mobile
- Check  compose your email via SMS on your Telstra or Vodafone mobile.

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



RE: table

2003-03-18 Thread Rob Stote
Title: RE: table





Balaji:


I now understand what you mean; your choice should be number 2. Create your table separate and place them one after each other. By definition your solution number 1 is actually creating 6 tables (5 data tables, and the 6th to hold them). 

As for your comment about buffering etc, I not 100% sure what you are getting at. The XSL:FO will produce a final complete document. I don't think there is a way to buffer the results. 


Rob


-Original Message-
From: Balaji Loganathan [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, March 18, 2003 4:48 AM
To: [EMAIL PROTECTED]
Subject: RE: table


Hi Rob,
 Thanks for taking time to reply me.My question was
bit different than to your specific reply, and I
re-posted it again.
Thanks again.
Regards
Balaji


--- Rob Stote [EMAIL PROTECTED] wrote: 
Balaji
 
 I did a quick test, I never nest tables, as a
 personal preference, easy to
 debug, read etc. FOP does say that the numbers
 produced from their debug
 statements should not be used comparatively. Hope
 this helps:
 
 File attached
 
 RESULTS FOR CALLED TABLES:
 
 703 [main] DEBUG RenderPDF - Avg render time:
 328ms/page
 640 [main] DEBUG RenderPDF - Avg render time:
 289ms/page
 703 [main] DEBUG RenderPDF - Avg render time:
 320ms/page
 656 [main] DEBUG RenderPDF - Avg render time:
 312ms/page
 625 [main] DEBUG RenderPDF - Avg render time:
 297ms/page
 AVRG: 309.2ms/page
 
 RESULTS FOR NESTED TABLES:
 
 766 [main] DEBUG RenderPDF - Avg render time:
 312ms/page
 609 [main] DEBUG RenderPDF - Avg render time:
 281ms/page
 688 [main] DEBUG RenderPDF - Avg render time:
 312ms/page
 609 [main] DEBUG RenderPDF - Avg render time:
 281ms/page
 641 [main] DEBUG RenderPDF - Avg render time:
 305ms/page
 AVRG: 298.2ms/page
 
 I hope this is what you are looking for.
 
 Rob
 -Original Message-
 From: Balaji Loganathan
 [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, March 17, 2003 10:33 AM
 To: fop
 Subject: fo:table
 
 Hi,
 which option is better and fast for building a
 table? 
 
 1.Construct one table with 8 rows, 2 columns.(most
 of
 the rows have table inside table).
 
 2.Construct 8 individual tables.(then insert table
 inside table).
 
 I hope my question is clear ??
 
 Regards
 Balaji
 
 http://mobile.yahoo.com.au - Yahoo! Mobile
 - Check  compose your email via SMS on your Telstra
 or Vodafone mobile.
 

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


 ATTACHMENT part 2 application/octet-stream
name=hockeycalledtable.xsl



 ATTACHMENT part 3 application/octet-stream
name=hockey2nested.xsl



 ATTACHMENT part 4 application/octet-stream
name=hockey2nested.xml

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


http://mobile.yahoo.com.au - Yahoo! Mobile
- Check  compose your email via SMS on your Telstra or Vodafone mobile.


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





Re: Table space from left

2003-03-18 Thread Clay Leeds
You should be able to either add the following to your table:
  fo:table-column column-width=.2cm/
(and then add the fo:table-cell throughout)
or, since you've got a table border  background, create a BLIND TABLE 
(as described in the FAQ) nesting the current table in another table 
like this:

fo:table background-color=#ABABAB padding=2pt border-width=.2mm 
border-style=solid border-color=black
  fo:table-column column-width=.2cm/
  fo:table-column column-width=15.8cm/
  fo:table-body..
fo:table-row..
  fo:table-cell/
  fo:table-cell
  !-- add your current table here --
fo:table background-color=#ABABAB padding=2pt 
border-width=.2mm  border-style=solid border-color=black
  fo:table-column column-width=5.8cm/
  fo:table-column column-width=4.5cm/
  fo:table-column column-width=5.5cm/

HTH!
Web Maestro Clay
[EMAIL PROTECTED] wrote:
I want to display my table 2 mm more to the right, but i can't get it
right, here is the code.
can someone help me?
xsl:template name=heading
fo:block space-after.optimum=10pt
  fo:table background-color=#ABABAB padding=2pt border-width=.2mm
  border-style=solid border-color=black
fo:table-column column-width=5.8cm/
fo:table-column column-width=4.5cm/
fo:table-column column-width=5.5cm/

--
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: Table space from left

2003-03-18 Thread Clay Leeds
Oops! I should've removed the BORDER  BACKGROUND attributes from the 
BLIND TABLE as below:

Clay Leeds wrote:
You should be able to either add the following to your table:
  fo:table-column column-width=.2cm/
(and then add the fo:table-cell throughout)
or, since you've got a table border  background, create a BLIND TABLE 
(as described in the FAQ) nesting the current table in another table 
like this:

fo:table
  fo:table-column column-width=.2cm/
  fo:table-column column-width=15.8cm/
  fo:table-body..
fo:table-row..
  fo:table-cell/
  fo:table-cell
  !-- add your current table here --
fo:table background-color=#ABABAB padding=2pt 
border-width=.2mm  border-style=solid border-color=black
  fo:table-column column-width=5.8cm/
  fo:table-column column-width=4.5cm/
  fo:table-column column-width=5.5cm/

HTH!
Web Maestro Clay
[EMAIL PROTECTED] wrote:
I want to display my table 2 mm more to the right, but i can't get it
right, here is the code.
can someone help me?
xsl:template name=heading
fo:block space-after.optimum=10pt
  fo:table background-color=#ABABAB padding=2pt 
border-width=.2mm
  border-style=solid border-color=black
fo:table-column column-width=5.8cm/
fo:table-column column-width=4.5cm/
fo:table-column column-width=5.5cm/



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

2003-03-17 Thread Rob Stote
Title: RE: table





Balaji


I did a quick test, I never nest tables, as a personal preference, easy to debug, read etc. FOP does say that the numbers produced from their debug statements should not be used comparatively. Hope this helps:

File attached


RESULTS FOR CALLED TABLES:


703 [main] DEBUG RenderPDF - Avg render time: 328ms/page
640 [main] DEBUG RenderPDF - Avg render time: 289ms/page
703 [main] DEBUG RenderPDF - Avg render time: 320ms/page
656 [main] DEBUG RenderPDF - Avg render time: 312ms/page
625 [main] DEBUG RenderPDF - Avg render time: 297ms/page
AVRG: 309.2ms/page


RESULTS FOR NESTED TABLES:


766 [main] DEBUG RenderPDF - Avg render time: 312ms/page
609 [main] DEBUG RenderPDF - Avg render time: 281ms/page
688 [main] DEBUG RenderPDF - Avg render time: 312ms/page
609 [main] DEBUG RenderPDF - Avg render time: 281ms/page
641 [main] DEBUG RenderPDF - Avg render time: 305ms/page
AVRG: 298.2ms/page


I hope this is what you are looking for.


Rob
-Original Message-
From: Balaji Loganathan [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 17, 2003 10:33 AM
To: fop
Subject: fo:table


Hi,
which option is better and fast for building a table? 


1.Construct one table with 8 rows, 2 columns.(most of
the rows have table inside table).


2.Construct 8 individual tables.(then insert table
inside table).


I hope my question is clear ??


Regards
Balaji


http://mobile.yahoo.com.au - Yahoo! Mobile
- Check  compose your email via SMS on your Telstra or Vodafone mobile.


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







hockeycalledtable.xsl
Description: Binary data


hockey2nested.xsl
Description: Binary data


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

Re: table-row +border

2003-02-20 Thread MARTIN Franck
i think borders are implemented on cells only
- Original Message -
From: Peter Menzel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 3:47 PM
Subject: table-row +border


 Hi

 I try to use
 fo:table-row border-style=solid border-width=1pt border-color=black
 to achieve row separating lines in my tale, but it does not work.
 When I put the border.. attributes in table-cell, it works.
 Is the border stuff not implementd for table-row ? I'm using FOP 0.20.4.

 Peter
 --

 -
 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-row +border

2003-02-20 Thread s-oualid
 Is the border stuff not implementd for table-row ? I'm using FOP 0.20.4.
 I think borders are implemented on cells only.

The answer is here : 

http://xml.apache.org/fop/implemented.html
http://xml.apache.org/fop/compliance.html

Simon



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



Re: Table column-width property

2003-02-12 Thread Oleg Tkachenko
sujata wrote:
I gave it as,
fo:table-column column-width={$colwidth}cm/
where colwidth is a variable name holding the column width value.
But this value is not accepting and it gives the error :
Error in column-width property value {$colwidth}
Seems to me you are trying to use variables in xsl-fo document instead of xsl 
stylesheet. Am I right?

--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Table column-width property

2003-02-12 Thread sujata
Oleg Tkachenko wrote:
Seems to me you are trying to use variables in xsl-fo document instead 
of xsl stylesheet. Am I right?
Sujata wrote:
   Exactly.. I need to give the column-width dynamically.
 Is it possbile to do that? If yes how can i do that?
-Thanks and Regards
Sujata





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


Re: Table column-width property

2003-02-12 Thread Oleg Tkachenko
sujata wrote:
   Exactly.. I need to give the column-width dynamically.

 Is it possbile to do that? If yes how can i do that?
Sure. But this should be done in XSLT stage, there is no notion of variables 
in XSL-FO. Fromatting is two-step process, first source document is 
transformed to result tree using XSLT and then result tree is formatted by 
FOP. Get some XSL tutorial, that's really basics.
--
Oleg Tkachenko
Multiconn Technologies, Israel

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


Re: Table column width

2003-02-03 Thread Oleg Tkachenko
sujata wrote:
 I have a problem in displaying the data in the pdf table.
Each column width in a table should be different from the other column 
depending on the data.
Since I am using the same fop stylesheet for different tables, I cannot 
hardcode the column width in the stylesheet.

Is there any option we can set so that the PDF table columns get 
adjusted with the data you pass (like HTML table)?
table-layout=auto is not implemented yet unfortunately.
If not, how can I go head to solve this problem?
Move table-column width calculation logic to xslt stage.
--
Oleg Tkachenko
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Table column width

2003-02-03 Thread sujata
Thanks for the reply.
How do you take the column width in a stylesheet.
I don't want to take each column width data as a separate parameter 
because the no of columns vary from table to table.
My Logic is get a string with all the column width s of the table 
seperated by coma.
In xsl split it and use it for the defining the column width.
But I did not find any methods in xsl to split a string and put it in an 
array?
Can u please tell me, how can i do this?

Thanks and Regards,
Sujata
Oleg Tkachenko wrote:
sujata wrote:
 I have a problem in displaying the data in the pdf table.
Each column width in a table should be different from the other 
column depending on the data.
Since I am using the same fop stylesheet for different tables, I 
cannot hardcode the column width in the stylesheet.

Is there any option we can set so that the PDF table columns get 
adjusted with the data you pass (like HTML table)?
table-layout=auto is not implemented yet unfortunately.
If not, how can I go head to solve this problem?
Move table-column width calculation logic to xslt stage.

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


RE: Table of Contents problem

2003-01-28 Thread Jon Steeves
Clay:

This actually results in the same problem: the endofdoc reference does 
force the TOC number  of the previous item to be printed, but its own page 
number is then omitted.

The solution I came up with is to -- as you suggested -- output this 
endofdoc reference as the last block in TOC, but to make the font 
color=white.  By doing this, the previous TOC item was printed in full and 
the last TOC dummy item, though incomplete, is output as invisible text.

Thanks for the help

Jon

 

-Original Message-
From: Clay Leeds [mailto:[EMAIL PROTECTED]
Sent: Friday, January 24, 2003 7:33 AM
To: [EMAIL PROTECTED]
Subject: Re: Table of Contents problem


Jon,

Can you merely use fo:page-number-citation ref-id=endofdoc/ for the 
last item (and put fo block id=endofdoc/fo:block at the last item)?

Web Maestro Clay

Jon Steeves wrote:
 I'm not using multi-column layout or keeps, or lists, and the block IS an 
 immediate child of the flow.
 
 -Original Message-
 From: J.Pietschmann [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 23, 2003 2:48 PM
 To: [EMAIL PROTECTED]
 Subject: Re: Table of Contents problem
 
 
 Jon Steeves wrote:
 
I'm trying to generate a TOC.  The following code works up to a point - all
the TOC items output correctly except for the last one, which won't print the
page number at the end of the leader pattern.

Does anyone know how to get that last page number to print?
 
 
 Looks like one of these elusive deleted Id bugs. Are you
 using a multi-column layout or keeps, or lists?
 An id referred to should be on a fo:block which is not nested
 in a list or table, and for best results on a block which is
 an immediate child of the flow.
 
 
 
 (Also, does
anyone know how to get the leader pattern to output evenly?)
 
 There is currently no way to make it perfect, but you can improve
 it a bit with a table
   fo:table table-layout=fixed widht=100%
 fo:table-column column-width=proportional-column-width(5)/
 fo:table-column column-width=proportional-column-width(1)/
 fo:table-body
   fo:table-row
 fo:table-cell
   fo:block text-align=justifyText fo:leader 
 leader-pattern=dots/
   /fo:block
 /fo:table-cell
 fo:table-cell
   fo:block text-align=right
fo:leader leader-pattern=dots/fo:page-number-citation .../
   /fo:block
 /fo:table-cell
   /fo:table-row
 /fo:table-body
   /fo:table
 Note: there must be a space before the leader in the first cell, and there
 must not be a space between the leader in the second cell and the page number 
 citation.
 The leader form the second cell will probably overlap the other leader. You
 might need to adjust the cell width a bit so that the dots match exactly.
 
 J.Pietschmann


-- 
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: Table cell alignment and images

2003-01-25 Thread J.Pietschmann
Rakesh Patel wrote:
The first image in the cell is flush against the right side of the cell. The
second image should be flush against the left side of its cell (giving the
impression of one continous graphic - because both images have a border built
in to them). However, there is a 0.5px gap between the image and the left
edge.
Image placement is subject to round off, and there may be
still off-by-one errors. You can try to compensate by using
a negative start-indent.
J.Pietschmann

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


RE: Table of Contents problem

2003-01-24 Thread Jon Steeves
I'm not using multi-column layout or keeps, or lists, and the block IS an 
immediate child of the flow.

-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 2:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Table of Contents problem


Jon Steeves wrote:
 I'm trying to generate a TOC.  The following code works up to a point - all
 the TOC items output correctly except for the last one, which won't print the
 page number at the end of the leader pattern.
 
 Does anyone know how to get that last page number to print?

Looks like one of these elusive deleted Id bugs. Are you
using a multi-column layout or keeps, or lists?
An id referred to should be on a fo:block which is not nested
in a list or table, and for best results on a block which is
an immediate child of the flow.


  (Also, does
 anyone know how to get the leader pattern to output evenly?)
There is currently no way to make it perfect, but you can improve
it a bit with a table
  fo:table table-layout=fixed widht=100%
fo:table-column column-width=proportional-column-width(5)/
fo:table-column column-width=proportional-column-width(1)/
fo:table-body
  fo:table-row
fo:table-cell
  fo:block text-align=justifyText fo:leader leader-pattern=dots/
  /fo:block
/fo:table-cell
fo:table-cell
  fo:block text-align=right
   fo:leader leader-pattern=dots/fo:page-number-citation .../
  /fo:block
/fo:table-cell
  /fo:table-row
/fo:table-body
  /fo:table
Note: there must be a space before the leader in the first cell, and there
must not be a space between the leader in the second cell and the page number 
citation.
The leader form the second cell will probably overlap the other leader. You
might need to adjust the cell width a bit so that the dots match exactly.

J.Pietschmann


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

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



RE: Table of Contents problem

2003-01-24 Thread Graham Hannington
 Jon Steeves wrote:
  I'm trying to generate a TOC.  The following code works up to a point -
all
  the TOC items output correctly except for the last one, which won't
print the
  page number at the end of the leader pattern.

I have the same problem (last page number citation in a TOC does not
appear), and also this one: the last page number citation on *each page* of
a (multi-page) TOC does not appear.

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



Re: Table of Contents problem

2003-01-24 Thread Clay Leeds
Jon,
Can you merely use fo:page-number-citation ref-id=endofdoc/ for the 
last item (and put fo block id=endofdoc/fo:block at the last item)?

Web Maestro Clay
Jon Steeves wrote:
I'm not using multi-column layout or keeps, or lists, and the block IS an 
immediate child of the flow.
-Original Message-
From: J.Pietschmann [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 2:48 PM
To: [EMAIL PROTECTED]
Subject: Re: Table of Contents problem
Jon Steeves wrote:
I'm trying to generate a TOC.  The following code works up to a point - all
the TOC items output correctly except for the last one, which won't print the
page number at the end of the leader pattern.
Does anyone know how to get that last page number to print?

Looks like one of these elusive deleted Id bugs. Are you
using a multi-column layout or keeps, or lists?
An id referred to should be on a fo:block which is not nested
in a list or table, and for best results on a block which is
an immediate child of the flow.

(Also, does
anyone know how to get the leader pattern to output evenly?)
There is currently no way to make it perfect, but you can improve
it a bit with a table
  fo:table table-layout=fixed widht=100%
fo:table-column column-width=proportional-column-width(5)/
fo:table-column column-width=proportional-column-width(1)/
fo:table-body
  fo:table-row
fo:table-cell
  fo:block text-align=justifyText fo:leader leader-pattern=dots/
  /fo:block
/fo:table-cell
fo:table-cell
  fo:block text-align=right
   fo:leader leader-pattern=dots/fo:page-number-citation .../
  /fo:block
/fo:table-cell
  /fo:table-row
/fo:table-body
  /fo:table
Note: there must be a space before the leader in the first cell, and there
must not be a space between the leader in the second cell and the page number 
citation.
The leader form the second cell will probably overlap the other leader. You
might need to adjust the cell width a bit so that the dots match exactly.

J.Pietschmann

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

2003-01-16 Thread J.Pietschmann
Ashish Arte wrote:
I am using many tables on a page as I use fop to generate pdf files. The
tables specified in the xsl are separated by space-before.optimum
attribute but some how, in the pdf these spaces are completely ignored.
The substructure for space'before, space'after, height, width
and other measurements is not suppoerted. I'm not sure which
subelement counts, you probably should use space-before=...,
this assigns all three subelements. Be aware that conditionality
currently isn't implemented either.
J.Pietschmann

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


Re: table-header or alter

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


Re: Table Alignment

2002-12-04 Thread Oleg Tkachenko
sujata shetty wrote:
Now the table is placed in one corner of the page.
I want my table to be aligned at the center.
Is there any table property where I can set 
align = center?
afaik the only way to center table using FOP at the moment is blind table 
usage, see http://marc.theaimsgroup.com/?l=fop-userm=102952965830886w=2.

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Table Alignment

2002-12-04 Thread Francis, Ronald

I have the smae problem , don't think fop supports it yet.
You could try putting your table inside another table with three equal width
cells.
Cheers,
Ronald

-Original Message-
From: sujata shetty [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 04, 2002 2:49 AM
To: [EMAIL PROTECTED]
Subject: Table Alignment


Hi Evrybody,
   I have a PDF table created.

Now the table is placed in one corner of the page.
I want my table to be aligned at the center.
Is there any table property where I can set 
align = center?

Please help me out in this.

Thanks and Regards,
Sujata

__
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-
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 footers and headers

2002-12-01 Thread J.Pietschmann
Nwilan Glirt wrote:
That is bad news for me... I am beginning to loose faith in FO being a 
practical solution for build business forms like invoices from XML. Has 
anyone actually succeeded doing this?
Yes.
What I really needed would be something like table-ONLY-footer-at-break 
and table-ONLY-header-at-break, but I know that this kind of request is 
beyond the scope of this mailing list.
The usual trick is to use markers instead of headers+footers.
Roughly for the footers: every table first cell of a row except
in the last row has a tab-footer marker with the desired text.
The first cell in the last row has an empty tab-footer marker.
The static content for the region-after retrieves the last.
tab-footer marker in a way that looks like is was part of the
table (means preciese measurements). The disadvantage is a bit
of additional space between the page body text and the footer
on pages where no conditional pseudo-table-footer is printed.
Working demo FO code
 http://marc.theaimsgroup.com/?l=fop-userm=103260578416087w=2
J.Pietschmann
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Table header and footer and page break

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

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: table-header and retrieve-marker

2002-11-19 Thread Keiron Liddle

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

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




Re: table-header and retrieve-marker

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

--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


Re: Table footers and headers

2002-11-13 Thread Oleg Tkachenko
Nwilan Glirt wrote:
That is bad news for me... I am beginning to loose faith in FO being a
practical solution for build business forms like invoices from XML. Has
anyone actually succeeded doing this?
xsl-fo specifies vocabulary and semantics of high-quality paginated 
presentation. Does it fit you needs or doesn't - your decision. Take a look at 
 Dave Pawson's An introduction to XSL Formatting Objects[1], first chapters 
may give you a perspective.

My next approach will be to produce pcl output and then make a script
that removes the headers/footers that are not needed (ie. the header on
first page and the footer on the last page). Seems like big trouble for
solving something that I had hoped was trivial doing directly in FO.
What I really needed would be something like table-ONLY-footer-at-break
and table-ONLY-header-at-break, but I know that this kind of request is
beyond the scope of this mailing list.
You right, this list is about FOP - one particular xsl-fo processor. You'd 
better ask on a list devoted to xsl-fo itself, e.g. [EMAIL PROTECTED], 
[EMAIL PROTECTED] or xsl-list. Actually a solution to your problem may exist, but 
I'm not aware of it and unfortunately I have no time to look for it, sorry.

[1] http://www.dpawson.co.uk/xsl/sect3/bk/index.html
--
Oleg Tkachenko
eXperanto team
Multiconn Technologies, Israel


  1   2   >