Re: Last page footer
Hello, Do you have examples of using markers or footnotes to distinct the last page footer ? I want to print the same footer on all pages except the last where I want nothing. Thanks - Original Message - From: J.Pietschmann [EMAIL PROTECTED] Date: Thu, 15 Jul 2004 22:47:58 +0200 To: [EMAIL PROTECTED] Subject: Re: Last page footer Roy wrote: I'd like to print a different footer for the last page. Did anyone find a workaround for this not yet implemented feature ? Possible workarounds: 1. Use markers. 2. Use a footnote on the last page (may break if there is not enough room for the footnote content). J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- ___ Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free! http://www.net2phone.com/cgi-bin/link.cgi?143 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
shifting a table to the left
I am trying to figure out how to shift a table side to side on a page, similar to how start-indent can shift the text starting point. I have a page layout with a wide left margin that can be used for side headings. When I need a side heading, I had intended to use a 2 column table, put the heading in the 1st column, the paragraph text in the 2nd column, and then shift the whole table to the left with negative offset to line everything up. If I use a negative start-indent on the block or table, the text starting point moves to the left, but since the table stays put, the text right margin doesn't move over with it, it effectively stays with the table, which hasn't moved. end-indent has no effect. Is there any way to cause the whole table to shift to the left, so that the table-cells will enforce the text margins? Thanks, Mike Kellstrand __ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: shifting a table to the left
OK, although I have not been able to get the table itself to shift to the left, I have been able to find a combination of start-indent and end-indent attribs at the right spots to visually do exactly what I need. If anyone can shift the table itself, then that would be the nicer solution. Thanks, Mike --- Mike Kellstrand [EMAIL PROTECTED] wrote: I am trying to figure out how to shift a table side to side on a page, similar to how start-indent can shift the text starting point. I have a page layout with a wide left margin that can be used for side headings. When I need a side heading, I had intended to use a 2 column table, put the heading in the 1st column, the paragraph text in the 2nd column, and then shift the whole table to the left with negative offset to line everything up. If I use a negative start-indent on the block or table, the text starting point moves to the left, but since the table stays put, the text right margin doesn't move over with it, it effectively stays with the table, which hasn't moved. end-indent has no effect. Is there any way to cause the whole table to shift to the left, so that the table-cells will enforce the text margins? Thanks, Mike Kellstrand __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: shifting a table to the left
Mike, On Jul 16, 2004, at 7:17 AM, Mike Kellstrand wrote: OK, although I have not been able to get the table itself to shift to the left, I have been able to find a combination of start-indent and end-indent attribs at the right spots to visually do exactly what I need. If anyone can shift the table itself, then that would be the nicer solution. Thanks, Mike Unfortunately, I don't have an idea for how to shift the table (other than having an extra column on the left that is not in use *except* when you want to 'shift' the table over). However, it might be nice to have your solution in the archives for others to use. :-) Web Maestro Clay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: shifting a table to the left
OK, here is my solution. I'm doing more interesting things in the actual table cell content, but you guys won't care about that, so I've altered it to just put text in each cell. Mike !-- = -- !-- -- !-- processCrossAlignHeader -- !-- -- !-- On a page layout with a wide left margin for this purpose, this template -- !-- will put a heading to the left of the main content flow, aligned with the -- !-- first line of the content. -- !-- -- !-- This is done by creating a 3 column table to hold the header and content, -- !-- and then shifting it to the left by the right amount. We need 3-- !-- columns so we can have a middle gutter column. -- !-- -- !-- I was unable to find a way to shift the table itself, so I used a -- !-- combination of start-indent and end-indent attributes on the table and-- !-- blocks that create a set of virtual margins to constrain the text flows -- !-- to where the table-cells would be, if we could simply shift the whole -- !-- table over. -- !-- -- !-- @param headerNode the header node to cross align in the wide left margin -- !-- @param actNodethe activity node to put in the normal flow area-- !-- -- !-- = -- xsl:template name='processCrossAlignHeader' xsl:param name='headerNode' / xsl:param name='actNode' / !-- The widths of the 3 comumns, per the page master -- xsl:variable name=headerColWidth(8pc + 6.75pt)/xsl:variable xsl:variable name=gutterColWidth(1pc + 3pt)/xsl:variable xsl:variable name=bodyColWidth(29pc + 5.25pt)/xsl:variable !-- Shift all text to the left -- fo:block start-indent=-({$headerColWidth} + {$gutterColWidth}) fo:table table-layout=fixed !-- This column will hold the cross aligned header -- fo:table-column column-width={$headerColWidth}/ !-- This column is just a gutter between the other 2 columns -- fo:table-column column-width={$gutterColWidth}/ !-- This column will hold the paragraph content and will line up with the normal page flow -- !-- Note that its width is reduced by the shift amount to put the right margin at the correct place -- fo:table-column column-width={$bodyColWidth} - ({$headerColWidth} + {$gutterColWidth})/ fo:table-body fo:table-row !-- display the heading text -- fo:table-cell !-- set the correct right margin for the header -- fo:block end-indent=({$headerColWidth} + {$gutterColWidth}) xsl:value-of select=$headerNode/ /fo:block /fo:table-cell !-- dummy gutter -- fo:table-cell fo:block/fo:block /fo:table-cell !-- display the paragraph content text -- fo:table-cell fo:block xsl:value-of select=$actNode/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:block /xsl:template --- Clay Leeds [EMAIL PROTECTED] wrote: Mike, On Jul 16, 2004, at 7:17 AM, Mike Kellstrand wrote: OK, although I have not been able to get the table itself to shift to the left, I have been able to find a combination of start-indent and end-indent attribs at the right spots to visually do exactly what I need. If anyone can shift the table itself, then that would be the nicer solution. Thanks, Mike Unfortunately, I don't have an idea for how to shift the table (other than having an extra column on the left that is not in use *except* when you want to 'shift' the table over). However, it might be nice to have your solution in the archives for others to use. :-) Web Maestro Clay __ Do you Yahoo!? Yahoo! Mail is new and improved - Check it out! http://promotions.yahoo.com/new_mail
Problem with table row
Hi all, I generate a table using XSLT. In the second cell of my table rows, I have 3 blocks (3 rows of text). I want those line to always be together, in the table row. FOP has a surprising behaviour : - In the last row of each page, the row border overlaps the bottom margin and draws over the footer. - Only the first row of text appears in the cell. The 2 following rows are on the following page. To work around this problem, I used fo:wrapper fo:table-cell xsl:use-attribute-sets=table.body.cell fo:wrapper fo:block text-align=left xsl:value-of select=item/code/ /fo:block fo:block text-align=left xsl:value-of select=item/name/ /fo:block fo:block text-align=left xsl:value-of select=item/reference/ /fo:block /fo:wrapper /fo:table-cell This give me the result I want but when I generate the PDF file using fop.bat, I get error messages for each row of my table : -- [ERROR] text outside block area Does anybody knows what's wrong ? Is there another way to get my 3 blocks together in each row without raising errors ? Regards AR -- ___ Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free! http://www.net2phone.com/cgi-bin/link.cgi?143 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: List problem
keep-with-next, keep-with-previous do work for table rows. That is part of the reason why I now have multi-layered tables in my .fo files. It's a bit slow but it works. From: Raphael Parree (Triveratech) [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 13, 2004 1:45 PMTo: [EMAIL PROTECTED]Subject: RE: List problem No particular reason for using list other than what I need is what a list offers (in XSL-FO spec). I will consider refractoring it to a table, however tables make my transformation slow. Does someone know how this is resolved in a next version of FOP. Also will keep-with next etc be supported? tx., Raphaël Parrée Director Courseware Consulting Services Principal Consultant Direct phone: +33 498 050075 Voice mail +33 683 468663 Trivera Technologies Global J2EE Education, Mentoring, Courseware Consulting Services Trivera Technologies EMEAA Trivera Technologies Europe, Middle East, Africa USA Canada Asia Pacific P +33 442 163594 P 1 609 953 1515 F +33 442 163509 F +1 609 953 6886 Espace Cézanne 135 Meeshaway Trail 14, Parc Golf du Club Medford Lakes 13856 Aix-en-Provence (France) NJ08055 (USA) URL http://www.triveratech.com Disclaimer .. "This email transmission (including attachments, if any) is confidential and intended solely for the person or organization to whom it is addressed and may contain information that is privileged, proprietary or confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any distribution, dissemination or copying of the information is strictly prohibited including taking any action in reliance of it. Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of any organization or employer. If you wish to forward or otherwise use all of part of the content of this message, you need sender's written permission prior to forwarding or using the content. If you have received this message in error, do not open any attachment but please notify the sender (above) deleting this message from your system. Please rely on your own virus checking, no responsibility is taken by the sender for any damage rising out of any bug or virus infection." -Original Message-From: Zaleski, Matthew (M.E.) [mailto:[EMAIL PROTECTED]Sent: Friday, July 09, 2004 20:31To: [EMAIL PROTECTED]; [EMAIL PROTECTED]Subject: RE: List problem Any particular reason you don't just make a table with 2 columns, the first column being your fo:list-item-label body? It may get around certain limitations in fop 0.20.5. A few other comments on your tables from my recent dive into using them: fo:table width="100%" is not supported AFAICT in fop 0.20.5. I have to specify exact width in inches/mm/etc to avoid getting a warning. Your fo:table-column column-number="1" (column-number attrib not supported in fop), use fo:table-column column-width="proportional-column-width(1)"/ and provide column entries in left to right order. In general, I've found that tables don't like to play nice with other enclosing elements and now have heavily nested tables to preserve layouts on my pages. It slows down processing but I get the layouts in my PDFs that I want. From: Raphael Parree (Triveratech) [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 3:48 PMTo: [EMAIL PROTECTED]Subject: List problem Hi I am having a problem making a list. I am using the XSL below to create a list. fo:list-item fo:list-item-label fo:block end-indent="label-end()"-/fo:block /fo:list-item-label fo:list-item-body start-indent="body-start()" fo:block fo:table width="100%" table-layout="fixed" fo:table-column column-number="1"/ fo:table-body fo:table-row keep-together="always" fo:table-cell fo:block xsl:apply-templates select="FOO"/ xsl:apply-templates select="BAR"/ /fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table /fo:block /fo:list-item-body /fo:list-item What happens sometimes is that the - w/out any body is on one page and the body is on the next page without a -. Any ideas? Tx., Raphael image001.gifimage002.gif
Re: MathML
On Fri, Jul 16, 2004 at 03:38:00PM +0530, Ganesh Babu Nallamothu, Integra-India wrote: I am using FOP for batch pagination of books. My problem with this is Math content. When we encounter Math we need to switch to PassiveTeX. But if you can add Math support to FOP itself if will be very useful. Is this task is in the whish list of FOP developers?? On my wish list, yes. In the near future, no. I believe it is possible to do MathML using JEuclid, which gives you SVG images for the formulas. Regards, Simon -- Simon Pepping home page: http://www.leverkruid.nl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Last page footer
Alain ROY wrote: Do you have examples of using markers or footnotes to distinct the last page footer ? I want to print the same footer on all pages except the last where I want nothing. I'd use a marker with the regular footer content right at the beginning at the flow, and a marker of the same class but empty content at the end. Roughly ... fo:static-content flow-name=xsl-region-end fo:retrieve-marker retrieve-class-name=footer retrieve-position=last-starting-within-page retrieve-boundary=document/ /fo:static-content fo:flow ... fo:marker marker-class-name=footer fo:blocknormal footer/fo:block /fo:marker ... stuff ... fo:marker marker-class-name=footer fo:block/ /fo:marker /fo:flow I'm not sure whether retrieve-position=last-starting-within-page properly interacts with retrieve-boundary=document in 0.20.5, there may be other caveats as well. You can try retrieve-position=firt-starting-within-page, this will give you the normal footer on a one page document, which may be what you want, or not. The examples in the FOP distribution have a more extravagant solution, using an overlapping SVG to hide the regular content. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MathML
Ganesh Babu Nallamothu, Integra-India wrote: I am using FOP for batch pagination of books. My problem with this is Math content. When we encounter Math we need to switch to PassiveTeX. But if you can add Math support to FOP itself if will be very useful. Is this task is in the whish list of FOP developers?? There is a FOP MathML extension using JEuclid in the CVS repository. You can check it out (from the maintenance branch), build FOP and create a servicec entry for the MathML element mapping (there should be a sample), it should work then. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with table row
Alain ROY wrote: I generate a table using XSLT. In the second cell of my table rows, I have 3 blocks (3 rows of text). I want those line to always be together, in the table row. Use keep-togheter=always on the table row. To work around this problem, I used fo:wrapper ... I get error messages for each row of my table : -- [ERROR] text outside block area The whitespace inside the fo:wrapper but outside the blocks is interpreted as content. Don't use fo:wrapper this way. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: MathML
The MathML extension is in CVS HEAD under examples/mathml, not in the maintenance branch. And it will probably take a bit to adjust it for FOP 0.20.5. http://cvs.apache.org/viewcvs.cgi/xml-fop/examples/mathml/ On 16.07.2004 22:29:47 J.Pietschmann wrote: Ganesh Babu Nallamothu, Integra-India wrote: I am using FOP for batch pagination of books. My problem with this is Math content. When we encounter Math we need to switch to PassiveTeX. But if you can add Math support to FOP itself if will be very useful. Is this task is in the whish list of FOP developers?? There is a FOP MathML extension using JEuclid in the CVS repository. You can check it out (from the maintenance branch), build FOP and create a servicec entry for the MathML element mapping (there should be a sample), it should work then. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]