AW: keep-together.within-column with content 1 page
Hi Brad, keep-together=always doesn't work, because it's a short for three keeps, including keep-together.within-line, which you most likely don't want. Keep-together.within-column is the correct way. But always is too strong. Try keep-together.within-column=5. Numbers are not completely supported, but they are stronger than none and weaker than a page break. Works fine in my code. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: Brad Smith [mailto:usernamenum...@gmail.com] Gesendet: Dienstag, 25. Mai 2010 23:05 An: fop-users@xmlgraphics.apache.org Betreff: Re: keep-together.within-column with content 1 page I've tried both. Same results either way. --Brad On Tue, May 25, 2010 at 3:32 PM, Amick, Eric eric.am...@mail.house.gov wrote: Are you setting just keep-together.within-column? In my experience, the unqualified keep-together (and unqualified keeps in general, for that matter) rarely works successfully. Eric Amick Systems Engineer II Legislative Computer Systems -Original Message- From: Brad Smith [mailto:usernamenum...@gmail.com] Sent: Tuesday, May 25, 2010 15:03 To: fop-users@xmlgraphics.apache.org Subject: keep-together.within-column with content 1 page Hello, I have certain elements in my document which I would like to keep together across pages as much as possible. I've been using the keep-together (and keep-together.within-column) property for this, and usually it works as expected: if printing the item on the current page would cause it to spill over, a page-break is inserted before it. Great. However, there are problems if the item's content is greater than one page in length. In that case, it *still* stays on the same page, even though that means all the content writing over its self, resulting in gibberish. Is there a way to have a middle-ground? What I really want is start on a fresh page if it will keep the item from breaking, then keep together /if possible/. Thanks in advance for any help people can offer. --Brad - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org -- ~ Second Shift: An original, serialized audio adventure ~ http://www.secondshiftpodcast.com - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org - To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org
Re: AW: AW: keep-together.within-column
Hi Sandra, sandraB wrote: I'm using a xsl stylesheet to transform an xml file to FO file. I don't know exactly in which cells I can get the classnames. So that means that you don’t have a special markup for classnames? In which case it’s only a guess game indeed. Maybe you can use a regexp attempting at identifying classnames; something like [a-zA-Z]+\(\.[a-zA-Z]+\)* As to implement that in XSLT... I use a template to search '.' and replace it by '\u200B' but I'm facing another problem with the invalid character (\). I'll update this topic when I will have the solution, but feel free to comment my solution. You can use the XML entity: #x200B; Just put it like this in your XSLT stylesheet, and the XSLT processor should process it correctly. Georg Datterl wrote: Hi Sandra, Basically depends how you get your data and where you manipulate it. I think, in the end the class name should look like com.\u200Bx.\u200Bxxx.\u200Bxxx.\u200Bx.\u200BGenericDecoder (in case Outlook is killing that: after each period is a unicode 200B). That should do the trick. Possibly more elegant readers can provide more elegant solutions. HTH, Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: keep-together.within-column
Hi, I'm facing another issue. I keep my solution but with yours it will be the same problem: I transform the text() node by replacing the '.' with '\u200B'. But how can I call the xsl:apply-templates on the result (I can have some bold text text or italic text text in a table cell) ? My templates xsl:template match=td fo:table-cell overflow=visible keep-together.within-column=always fo:block padding=0cm white-space-collapse=false xsl:call-template name=addZeroWidthSpace xsl:with-param name=str select=text() / /xsl:call-template /fo:block /fo:table-cell /xsl:template xsl:template name=addZeroWidthSpace xsl:param name=str / xsl:variable name=hyphenation-character#x200B;/xsl:variable xsl:choose xsl:when test='.' and contains($str, '.') !-- I need to apply another templates on substring-before($str, '.') -- xsl:value-of select=substring-before($str, '.') /.xsl:value-of select=$hyphenation-character / xsl:call-template name=addZeroWidthSpace xsl:with-param name=str select=substring-after($str, '.') / /xsl:call-template /xsl:when xsl:otherwise !-- I need to apply another templates here -- xsl:value-of select=$str / /xsl:otherwise /xsl:choose /xsl:template Vincent Hennebert-2 wrote: Hi Sandra, sandraB wrote: I'm using a xsl stylesheet to transform an xml file to FO file. I don't know exactly in which cells I can get the classnames. So that means that you don’t have a special markup for classnames? In which case it’s only a guess game indeed. Maybe you can use a regexp attempting at identifying classnames; something like [a-zA-Z]+\(\.[a-zA-Z]+\)* As to implement that in XSLT... I use a template to search '.' and replace it by '\u200B' but I'm facing another problem with the invalid character (\). I'll update this topic when I will have the solution, but feel free to comment my solution. You can use the XML entity: #x200B; Just put it like this in your XSLT stylesheet, and the XSLT processor should process it correctly. Georg Datterl wrote: Hi Sandra, Basically depends how you get your data and where you manipulate it. I think, in the end the class name should look like com.\u200Bx.\u200Bxxx.\u200Bxxx.\u200Bx.\u200BGenericDecoder (in case Outlook is killing that: after each period is a unicode 200B). That should do the trick. Possibly more elegant readers can provide more elegant solutions. HTH, Vincent - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/keep-together.within-column-tp20854422p20895180.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: keep-together.within-column
I'm using a xsl stylesheet to transform an xml file to FO file. I don't know exactly in which cells I can get the classnames. I use a template to search '.' and replace it by '\u200B' but I'm facing another problem with the invalid character (\). I'll update this topic when I will have the solution, but feel free to comment my solution. Georg Datterl wrote: Hi Sandra, Basically depends how you get your data and where you manipulate it. I think, in the end the class name should look like com.\u200Bx.\u200Bxxx.\u200Bxxx.\u200Bx.\u200BGenericDecoder (in case Outlook is killing that: after each period is a unicode 200B). That should do the trick. Possibly more elegant readers can provide more elegant solutions. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/keep-together.within-column-tp20854422p20892434.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: keep-together.within-column
Hi Sandra, Most likely the hyphenation method doesn't know where to insert a break. This was discussed on the developer list recently and the suggestion was to insert zero-width spaces. If you know exactly in which cells you can get the classnames, maybe you can replace all . with .+zero width space? Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: sandraB [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 5. Dezember 2008 15:06 An: fop-users@xmlgraphics.apache.org Betreff: keep-together.within-column Hi, I use the keep-together.within-column attribut for the fo:table-cell to have text wrapping. It's working fine with the text https://www.xx.xxx.com//services/MultiDiffusionWS; but it's not working with com.x.xxx.xxx.x.GenericDecoder. Could you help me to resolve this issue ? Thanks in advance. -- View this message in context: http://www.nabble.com/keep-together.within-column-tp20854422p20854422.html Sent from the FOP - Users mailing list archive at Nabble.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: AW: keep-together.within-column
Hi, Could you give me an example please ? Georg Datterl wrote: Hi Sandra, Most likely the hyphenation method doesn't know where to insert a break. This was discussed on the developer list recently and the suggestion was to insert zero-width spaces. If you know exactly in which cells you can get the classnames, maybe you can replace all . with .+zero width space? Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de -Ursprüngliche Nachricht- Von: sandraB [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 5. Dezember 2008 15:06 An: fop-users@xmlgraphics.apache.org Betreff: keep-together.within-column Hi, I use the keep-together.within-column attribut for the fo:table-cell to have text wrapping. It's working fine with the text https://www.xx.xxx.com//services/MultiDiffusionWS; but it's not working with com.x.xxx.xxx.x.GenericDecoder. Could you help me to resolve this issue ? Thanks in advance. -- View this message in context: http://www.nabble.com/keep-together.within-column-tp20854422p20854422.html Sent from the FOP - Users mailing list archive at Nabble.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] -- View this message in context: http://www.nabble.com/keep-together.within-column-tp20854422p20854618.html Sent from the FOP - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: keep-together.within-column
Hi Sandra, Basically depends how you get your data and where you manipulate it. I think, in the end the class name should look like com.\u200Bx.\u200Bxxx.\u200Bxxx.\u200Bx.\u200BGenericDecoder (in case Outlook is killing that: after each period is a unicode 200B). That should do the trick. Possibly more elegant readers can provide more elegant solutions. Regards, Georg Datterl -- Kontakt -- Georg Datterl Geneon media solutions gmbh Gutenstetter Straße 8a 90449 Nürnberg HRB Nürnberg: 17193 Geschäftsführer: Yong-Harry Steiert Tel.: 0911/36 78 88 - 26 Fax: 0911/36 78 88 - 20 www.geneon.de Weitere Mitglieder der Willmy MediaGroup: IRS Integrated Realization Services GmbH:www.irs-nbg.de Willmy PrintMedia GmbH:www.willmy.de Willmy Consult Content GmbH: www.willmycc.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]