table-footer at foot of table problem
Hello. Please excuse me if this has already been asked - I've trawled through the archives and read the FAQ to try to find an answer, but to no avail. I am using a table with a fixed height, and a table-footer element. I may be missing something, but I would like to have the footer at The bottom of the table, rather than after the last table row in the body section. Does anyone know how I can achieve this? ( I've included an example in case I haven't explained myself clearly ) Thanks in advance, Steve Example fo xml: ?xml version=1.0? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=example margin-top=10mm margin-bottom=10mm margin-left=10mm margin-right=10mm page-width=170mm page-height=170mm fo:region-body/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=example fo:flow flow-name=xsl-region-body fo:table border=1pt solid black height=100mm table-layout=fixed fo:table-column column-width=100mm/ fo:table-header fo:table-row fo:table-cell fo:block Header /fo:block /fo:table-cell /fo:table-row /fo:table-header fo:table-footer fo:table-row fo:table-cell fo:block Footer /fo:block /fo:table-cell /fo:table-row /fo:table-footer fo:table-body fo:table-row fo:table-cell fo:block Body /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:flow /fo:page-sequence /fo:root this produces a pdf kind of like the following: +---+ |Header | |Body | |Footer | | | | | | | | | | | +---+ whereas what I would really like is: +---+ |Header | |Body | | | | | | | | | | | |Footer | +---+ This message is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you receive this message in error please contact the sender by return e-mail and delete the message from your computer. Any opinions contained in this message are those of the author and are not given or endorsed by Metalogic PLC unless otherwise clearly indicated in this message and the authority of the author to bind Metalogic is duly verified. Metalogic PLC accepts no liability for any errors or omissions in the context of this message which arise as a result of internet transmission.
RE: table-footer at foot of table problem
My guess is table-footer is working exactly as intended. Are you sure you don't want to use a page footer? Something that always gets placed at the bottom of a page? If so, look into using xsl-region-after fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=example margin-top=10mm margin-bottom=10mm margin-left=10mm margin-right=10mm page-width=170mm page-height=170mm fo:region-after extent=20mm/ fo:region-body margin-bottom=20mm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=example fo:static-content flow-name=xsl-region-after fo:blockFooter/fo:block /fo:static-content fo:flow flow-name=xsl-region-body. HTH, Scott -Original Message- From: Steve Pitchford [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 1:12 PM To: [EMAIL PROTECTED] Subject: table-footer at foot of table problem Hello. Please excuse me if this has already been asked - I've trawled through the archives and read the FAQ to try to find an answer, but to no avail. I am using a table with a fixed height, and a table-footer element. I may be missing something, but I would like to have the footer at The bottom of the table, rather than after the last table row in the body section. Does anyone know how I can achieve this?
RE: table-footer at foot of table problem
Thanks for the quick reply Scott, I don't think I want to use page footers in this case (although I'm willing to if they can solve what I want to do ) - but I understand where you are coming from. The reason is that the xsl I've written produces documents that go over a few pages and I wanted to put a row at the bottom of the last page to show some totals using table-omit-footer-at-break, but keep the size of the table consistent on all pages ( otherwise I could just put an table after the fixed table ) Steve. -Original Message- From: Scott Moore [mailto:[EMAIL PROTECTED] Sent: 30 April 2002 18:12 To: '[EMAIL PROTECTED]' Subject: RE: table-footer at foot of table problem My guess is table-footer is working exactly as intended. Are you sure you don't want to use a page footer? Something that always gets placed at the bottom of a page? If so, look into using xsl-region-after fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=example margin-top=10mm margin-bottom=10mm margin-left=10mm margin-right=10mm page-width=170mm page-height=170mm fo:region-after extent=20mm/ fo:region-body margin-bottom=20mm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=example fo:static-content flow-name=xsl-region-after fo:blockFooter/fo:block /fo:static-content fo:flow flow-name=xsl-region-body. HTH, Scott -Original Message- From: Steve Pitchford [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 1:12 PM To: [EMAIL PROTECTED] Subject: table-footer at foot of table problem Hello. Please excuse me if this has already been asked - I've trawled through the archives and read the FAQ to try to find an answer, but to no avail. I am using a table with a fixed height, and a table-footer element. I may be missing something, but I would like to have the footer at The bottom of the table, rather than after the last table row in the body section. Does anyone know how I can achieve this?
Re: table-footer at foot of table problem
Steve What you could do is set the height of each table row to some length ie 5mm. You then know how many table rows will appear on each page. Count up the number of rows in the table, calculate the number of rows that will appear on the last page. Insert Y empty rows at the end of the table to pad out the table to fill the page. Chuck Steve Pitchford wrote: Thanks for the quick reply Scott, I don't think I want to use page footers in this case (although I'm willing to if they can solve what I want to do ) - but I understand where you are coming from. The reason is that the xsl I've written produces documents that go over a few pages and I wanted to put a row at the bottom of the last page to show some totals using table-omit-footer-at-break, but keep the size of the table consistent on all pages ( otherwise I could just put an table after the fixed table ) Steve. -Original Message- From: Scott Moore [mailto:[EMAIL PROTECTED] Sent: 30 April 2002 18:12 To: '[EMAIL PROTECTED]' Subject: RE: table-footer at foot of table problem My guess is table-footer is working exactly as intended. Are you sure you don't want to use a page footer? Something that always gets placed at the bottom of a page? If so, look into using xsl-region-after fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=example margin-top=10mm margin-bottom=10mm margin-left=10mm margin-right=10mm page-width=170mm page-height=170mm fo:region-after extent=20mm/ fo:region-body margin-bottom=20mm/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-reference=example fo:static-content flow-name=xsl-region-after fo:blockFooter/fo:block /fo:static-content fo:flow flow-name=xsl-region-body. HTH, Scott -Original Message- From: Steve Pitchford [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 30, 2002 1:12 PM To: [EMAIL PROTECTED] Subject: table-footer at foot of table problem Hello. Please excuse me if this has already been asked - I've trawled through the archives and read the FAQ to try to find an answer, but to no avail. I am using a table with a fixed height, and a table-footer element. I may be missing something, but I would like to have the footer at The bottom of the table, rather than after the last table row in the body section. Does anyone know how I can achieve this?