Re: keep with next(Attribute)
Hi Sako, may i ask, how do u solve the problem with keep with next? i mean when sometimes only one line shines in the next page. or only the title shines in one page and the text(paragraph) in the next? keep-with-next is only implemented for table rows, so one solution is to create a table, put the header in the first row and what follows in the next row(s). Don't forget to set keep-with-next on the first row ;-) Depending on the kind of document and how you generate the .fo, this may be difficult to implement. If this is the case and there are not too many occurences of widowed headers, I usually hack the .fo: find the first trouble spot and add a break-before='page' attribute. Rebuild the PDF, find the next spot etc. Of course this is only feasible if your publishing rate is low. And you have to redo the handwork everytime your sources change :-( There are other solutions; a short time ago this subject was discussed extensively on a list, but I don't remember which. Maybe this one. Greetings, Paul Vinkenoog - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep with next(Attribute)
thank you for answer. here is my situation. 1. tables are on solution, but really not good for me. i know about it. 2. the text changes relatively. so i cant find the break-before='page' attribute. 3. my publishing rate is hight :( maybe someone of you knows another xml prossessor tool, which is acceptibale (i mean $) and solves my problem. i dont want to say fop is bad, i really want to support fop, but i have the problems and i have to solve it. according to, i dont know weather in the future this problem will be solved in fop. thanks in advance. Regards. - Original Message - From: Paul Vinkenoog [EMAIL PROTECTED] To: FOP [EMAIL PROTECTED] Sent: Thursday, September 16, 2004 1:01 PM Subject: Re: keep with next(Attribute) Hi Sako, may i ask, how do u solve the problem with keep with next? i mean when sometimes only one line shines in the next page. or only the title shines in one page and the text(paragraph) in the next? keep-with-next is only implemented for table rows, so one solution is to create a table, put the header in the first row and what follows in the next row(s). Don't forget to set keep-with-next on the first row ;-) Depending on the kind of document and how you generate the .fo, this may be difficult to implement. If this is the case and there are not too many occurences of widowed headers, I usually hack the .fo: find the first trouble spot and add a break-before='page' attribute. Rebuild the PDF, find the next spot etc. Of course this is only feasible if your publishing rate is low. And you have to redo the handwork everytime your sources change :-( There are other solutions; a short time ago this subject was discussed extensively on a list, but I don't remember which. Maybe this one. Greetings, Paul Vinkenoog - 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: keep with next(Attribute)
Title: RE: keep with next(Attribute) You might want to look at XEP www.renderx.com -Original Message- From: Eclipse [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 16, 2004 8:15 AM To: [EMAIL PROTECTED] Subject: Re: keep with next(Attribute) thank you for answer. here is my situation. 1. tables are on solution, but really not good for me. i know about it. 2. the text changes relatively. so i cant find the break-before='page' attribute. 3. my publishing rate is hight :( maybe someone of you knows another xml prossessor tool, which is acceptibale (i mean $) and solves my problem. i dont want to say fop is bad, i really want to support fop, but i have the problems and i have to solve it. according to, i dont know weather in the future this problem will be solved in fop. thanks in advance. Regards. - Original Message - From: Paul Vinkenoog [EMAIL PROTECTED] To: FOP [EMAIL PROTECTED] Sent: Thursday, September 16, 2004 1:01 PM Subject: Re: keep with next(Attribute) Hi Sako, may i ask, how do u solve the problem with keep with next? i mean when sometimes only one line shines in the next page. or only the title shines in one page and the text(paragraph) in the next? keep-with-next is only implemented for table rows, so one solution is to create a table, put the header in the first row and what follows in the next row(s). Don't forget to set keep-with-next on the first row ;-) Depending on the kind of document and how you generate the .fo, this may be difficult to implement. If this is the case and there are not too many occurences of widowed headers, I usually hack the .fo: find the first trouble spot and add a break-before='page' attribute. Rebuild the PDF, find the next spot etc. Of course this is only feasible if your publishing rate is low. And you have to redo the handwork everytime your sources change :-( There are other solutions; a short time ago this subject was discussed extensively on a list, but I don't remember which. Maybe this one. Greetings, Paul Vinkenoog - 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: keep-with-next on last row in table-head doesn't work
olts Jn wrote: Could anybody help me with this task: How to avoid FOP to place table header at the end of the page following with no more rows on that page? Setting keep-with-next on the last row of table's table-head doesn't work. Table header is still at the bottom of the page. As you are probably aware keep-* properties are only implemented on table-row in FOP. This implementation is more of a hack than a thoroughly tested implementation. Most likely the contents of table-header are not considered in this hack. snip/ 1st page - ... some content ... table header 2nd page - table header table body . . You could try keep-with-previous=always on the first table row. I'm not sure if it will work, give it a try. Failing that your only options are to put break-before=page on the entire table or break-after=page on the last block before the table. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep-with-next
From: Frank Daly [EMAIL PROTECTED] Hi I have a table which will list a number of clients. There are 2 or 3 rows displaying the details of each client. I want to keep these rows together and have the following code fragment which I hoped would do this Your XSL-FO looks fine. keep-* properties are implemented on table-rows in FOP, so it should work. Have you tried it? What version of FOP are you using? Chris _ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: keep-with-next
Thanks for your quick reply Chris I've tried it and it doesn't work. The page break splits two rows relating to one client. I'm not sure which version of fop I'm using. I use cocoon 2.0.4 and fop came with that. This version of cocoon was released in march 2003. Frank -Original Message- From: Chris Bowditch [mailto:[EMAIL PROTECTED] Sent: 24 October 2003 03:43 To: [EMAIL PROTECTED] Subject: Re: keep-with-next From: Frank Daly [EMAIL PROTECTED] Hi I have a table which will list a number of clients. There are 2 or 3 rows displaying the details of each client. I want to keep these rows together and have the following code fragment which I hoped would do this Your XSL-FO looks fine. keep-* properties are implemented on table-rows in FOP, so it should work. Have you tried it? What version of FOP are you using? Chris _ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---Legal Disclaimer--- The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt. ---Legal Disclaimer--- The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep-with-next
Frank Daly wrote: fo:table-row keep-with-next.within-page=always Try keep-with-next=always. I think FOP ignores within-page and uses within-column only. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep-with-next
Frank Daly wrote: I'm not sure which version of fop I'm using. I use cocoon 2.0.4 and fop came with that. This version of cocoon was released in march 2003. This was an 0.20.5RCsomething. You can drop in the latest FOP jar from a binary distro without problems. It wont make a difference with regard to keeps though. It may help to add a keep-toghether=always on the rows in question. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: keep-with-next
-Original Message- From: Frank Daly [mailto:[EMAIL PROTECTED] I'm not sure which version of fop I'm using. I use cocoon 2.0.4 and fop came with that. This version of cocoon was released in march 2003. That would probably be 0.20.4 or one of the 0.20.5 release candidates. 0.20.5 final was released June 2003 I think... Try looking at the document properties in the generated pdf; the producer field will reveal the used version Greetz, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: keep-with-next
That worked. Thanks very much, enjoy your weekend. Frank -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED] Sent: 24 October 2003 04:25 To: [EMAIL PROTECTED] Subject: Re: keep-with-next Frank Daly wrote: fo:table-row keep-with-next.within-page=always Try keep-with-next=always. I think FOP ignores within-page and uses within-column only. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---Legal Disclaimer--- The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt. ---Legal Disclaimer--- The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep-with-next, and keep-with-previous in blocks
From: Ganesh [EMAIL PROTECTED] Hi All, A block with keep-with-previous=always does not behave the way I want it. Inspite of putting this tag for a block i have them splict between pages. a) Is it a non-implemented tag for fo:block? b) Is there any work around to acheive the desired behaviour? keep-* properties have only been implemented on fo:table-row in FOP. The only work-around is to put your blocks in a single column table. Chris _ Express yourself with cool emoticons - download MSN Messenger today! http://www.msn.co.uk/messenger - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep-with-next, and keep-with-previous in blocks
Ganesh wrote: A block with keep-with-previous=always does not behave the way I want it. Inspite of putting this tag for a block i have them splict between pages. a) Is it a non-implemented tag for fo:block? b) Is there any work around to acheive the desired behaviour? That's a FAQ: http://xml.apache.org/fop/faq.html#keep-with - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep-with-next in blind table creates gaps on some pages
And if you set the keep-with-next only on the row with the title? That will keep the title with at least one subseqent block. On 28.05.2003 09:00:04 Nicolas Mazziotta wrote: I use blind tables to prevent titles from being severed from the following block. But... If the block is too large to fit on remaining the page, it is ``sent'' to the next one. So I get stuff like this: snip/ where 1st and 2d blocks are large paragraphs that *cannot* be divided into several subblocks. where I want: snip/ If I remove the ``keep-with-next'' att., of course, I get lonely titles wandering at the bottom of some pages. Jeremias Maerki - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep-with-next in blind table creates gaps on some pages
Chris Bowditch wrote: what you need to solve this problem is widow and orphan properties on fo:block. They control the minimum number of lines that are allowed to appear by themselves, either at the start of a new page or at the bottom of an existing page. Trouble is they are not implemented in FOP, and there is no work around. Yes, I've already tried this -and been disappointed. thank you -- ++ |Nicolas Mazziotta | |Aspirant au doctorat| |Linguistique française | |Département d'études romanes| |Université de Liège | ++ |04/3665382 | |[EMAIL PROTECTED] | ++ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Keep-with-next in tables
Haitham, FWIW, I use fo:table-row keep-with-next=always/ and its works like a champ for me. Have you done various experiments with only two or three rows etc. to see under what conditions it does/doesn't work? In any event, I can assure you that under at least some conditions, it does work just fine. Ben Al-Dhahir, Haitham wrote: Hi, I have a table which is composed of groups of four rows at a time. The table is made up of a repeating set of these groups, as follows: fo:table !-- Group 1 -- fo:table-row line-height=12pt keep-with-next=alwaysROW 1/fo:table-row fo:table-row line-height=12pt keep-with-next=alwaysROW 2/fo:table-row fo:table-row line-height=12pt keep-with-next=alwaysROW 3/fo:table-row fo:table-row line-height=12ptROW 4/fo:table-row !-- Group 2 -- fo:table-row line-height=12pt keep-with-next=alwaysROW 1/fo:table-row fo:table-row line-height=12pt keep-with-next=alwaysROW 2/fo:table-row fo:table-row line-height=12pt keep-with-next=alwaysROW 3/fo:table-row fo:table-row line-height=12ptROW 4/fo:table-row etc etc more groups .. /fo:table I want each group of rows to stay together - so if e.g. the whole of Group 1 cannot fit onto the rest of the current page, then rather than splitting the rows up, the whole of Group 1 should be shown on the next page. To achieve this, I have used keep-with-next=always on the first three rows of each group, as shown above. I would expect this to give the desired result, but it is not - the groups are still being split up when a page break is reached. I tried adding keep-with-previous=always to rows 2, 3 and 4 in each Group as well (although I don't see why this is necessary) - and still get the same results. I am using the latest release of FOP, 0.20.5rc2. Can anyone help here? Thanks, Haitham. - 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: keep-with-next not working in tables bigger than two pages
Müller, Markus wrote: according to the compliance document, keep-with-next is supported on table rows. The sample file keep.fo also demonstrates keep-with-previous working. But extending that sample in a way, that a table does not fit on two pages, the keep-directives do not work any more. Making separate tables fitting on max. two pages solves this problem. If you create aa run of rows which should be kept together but span more than a page, FOP can't honor the keep constraints for obvious reasons. The somewhat simplistic resolution of this problem is to turn off keeps summarily for the rest of the table. THe redesigned code will hopefully briong a better solution, but it's still far from production quality. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep-with-next
i think keep with next work with table rows only - Original Message - From: Karen Mergner [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, January 23, 2003 10:23 AM Subject: keep-with-next Hi all, I want to keep a headline together with the following text on a page, but it dosn't work. fo:block keep-with-next=always ...headline... /fo:block fo:block ...text... /fo:block What's wrong? Can someone help me? Thanks, Karen - 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: keep-with-next
Karen Mergner wrote: I want to keep a headline together with the following text on a page, but it dosn't work. This is a FAQ http://xml.apache.org/fop/faq.html#faq-N101F7 J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: keep-with-next formatting problem
Additional information about this problem. I just ran a report that has more than two pages of data and after the second page, with the problem, all additional multi-page spans are correct. Must just be a problem with the first break. -Original Message- From: Matt Frame [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 11, 2002 8:34 AM To: [EMAIL PROTECTED] Subject: keep-with-next formatting problem I have found when I use the keep-with-next and keep-with-previous attributes in my table that after a page break the formatting of the row is lost. All text is left justified instead of the indent I requested. The final row on the previous page and next row after the break point on the next page are aligned correctly. In experimenting with headers I found they are affected as well. It seems like the next page formatting is effected until after the keep-with-previous row is printed. Can anyone explain what I may be doing wrong or how I may work around this problem? Thanks, Matt
Re: keep-with-next formatting problem
Matt Frame wrote: I have found when I use the keep-with-next and keep-with-previous attributes in my table that after a page break the formatting of the row is lost. All text is left justified instead of the indent I requested. The final row on the previous page and next row after the break point on the next page are aligned correctly. In experimenting with headers I found they are affected as well. It seems like the next page formatting is effected until after the keep-with-previous row is printed. Can anyone explain what I may be doing wrong or how I may work around this problem? Pleas open a bug in bugzilla and attach a small, self confined example which demonstrates the problem. I can't deduce it from source inspection. Meanwhile, try to specify the indentation (margin, padding, start-indent) at some other place, for example at the fo:block inside the table cell, or nest an additional block. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep-with-next problem
Morten Isaksen wrote: I have a table cell that spans multiple pages. Inside this table cell I would like to use the keep-with-next on a block to make sure this block and the next block is at the same page. FOP does not seem to care about this. The two blocks sometimes appears on different pages. Does FOP support keep-with at all? Only on table rows. Try blind table then. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: keep-with-next and small-caps
Berg, Philip wrote: I'm trying to keep multiple rows together, like so: fo:table-row keep-with-next=always [ cells ] /fo:table-row fo:table-row keep-with-next=always [ cells ] /fo:table-row fo:table-row [ cells ] /fo:table-row That doesn't seem to keep it together though (no changed behavior). I looked at xsl:fo tutorials and this mailing list's history and it seemed to me the above should work. I'm using fop-0.20.4. Any alternatives/suggestions? It works fine for me. Chances are you misunderstood the semantics a little bit. keep-with-next constraint means that last area generated by the object shouldn't be a trailing one within a context (page, column, line), therefore the only a situation when your table-row ends up and there is no areas after it on the page considered to be not satisfying the constraints. I mean if your row starts on 1 page and ends on 2 one then next row should be started immidiately after it on 2 page and the condition is satisfied. I was using font-variant=small-caps in a table-header. That was working just perfect if this table only was one page. The header was also present on consecutive pages but the small-caps was gone (it was just normal font-variant). Why is that? In particular I'm very confused by that because I thought fop only evaluates the header once (I verified that with debug messages). So how can the header then be different for tables that span multiple pages? The above seemed fop issues to me (limitations?), so I hope I'm at the right place. If not let me know and I guess I'll seek an xsl-fo mailing list. Hmmm, looks like a bug, file it to bugzilla. -- Oleg Tkachenko eXperanto team Multiconn Technologies, Israel
Re: keep-with-next in fo:block
Martin Stockhammer wrote: what about the state of keep-with-next in fo:block? I want to keep headings together with their following paragraphs, but keep-with-next=always does not work within fo:block tags. Is it planned to release a new version of fop in the near future? It wont be in the next maintenance release. If you want to keep headings together with the first paragraph, you can use a blind table with two rows, one containing the heading, the other the paragraph, and put keep-with-next=always on the first row. Another question: Is it planned to implement the linefeed-treatment attribute into fo:block? Well, planned If you use white-space-collapse=false, line feeds will be preserved too, so you can put whitespace preformatted data like program source into a fo:block and it will come out as expected. J.Pietschmann
Re: keep-with-next
I have found it to be unreliable as well. My experience was with trying to keep rows in a table from splitting across pages. I found that fo:table-row keep-together=always did the trick splendidly. - Original Message - From: Michal Kwiatek [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 09, 2002 5:20 AM Subject: keep-with-next Hi! keep-with-next property does not seem to work. It is listed as 'implemented' in documentation, however theres a 'broken' note next to it. Has anyone had any experience with this one? I use block objects to implement headings. That why I need 'keep-with-next' property. But perhaps there's a better way to ensure that heading goes together with the text after it. Any ideas? Michal Kwiatek
Re: keep-with-next
Michal Kwiatek wrote: keep-with-next property does not seem to work. It is listed as 'implemented' in documentation, however theres a 'broken' note next to it. Has anyone had any experience with this one? The properties keep-with-next and keep-with-previous are only implemented for table rows. I use block objects to implement headings. That why I need 'keep-with-next' property. But perhaps there's a better way to ensure that heading goes together with the text after it. Any ideas? The standard is to put the heading and the first paragraph (or similar block element) into a two row, one column table without borders. The following appears to work: fo:table table-layout=fixed width=100% fo:table-column column-width=proportional-column-width(1)/ fo:table-body fo:table-row keep-with-next=always fo:table-cell fo:block font-size=40pt font-weight=boldTitle/fo:block /fo:table-cell /fo:table-row fo:table-row fo:table-cell fo:blockLorem ipsum dolor sit amet. Consectetuer adipiscing elit, sed diam nonummy. Nibh euismod tincidunt ut laoreet dolore magna. Aliquam erat volutpat. Iriure dolor in/fo:block /fo:table-cell /fo:table-row /fo:table-body /fo:table J.Pietschmann