RE: XSL FO newbie question - Hide overflow page content
Hi, IMHO, if fo:page-sequence refers to fo:page-sequence-master with not enough page to render the content, then the pages are repeated (I have not found expected behaviour in REC XSL-FO 1.0 for such case). If you want to truncate content to get a single page, you shoud try to put your content i a fo:block-container in absolute position. Logs should inform you that is overlapping content. HTH, Pascal -Message d'origine- De : Peter [mailto:[EMAIL PROTECTED] Envoyé : jeudi 18 janvier 2007 08:48 Hello, I tried the following with fop 0.93 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=page page-height=50pt page-width=200pt fo:region-body/fo:region-body /fo:simple-page-master fo:page-sequence-master master-name=single fo:repeatable-page-master-reference master-reference=page maximum-repeats=1/fo:repeatable-page-master-reference /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=single fo:flow flow-name=xsl-region-body fo:block font-size=28pt linefeed-treatment=preserveLine Line Line/fo:block /fo:flow /fo:page-sequence /fo:root Which results in fop -fo c:\temp\t.fo -pdf c:\temp\t.pdf Jan 18, 2007 8:34:17 AM org.apache.fop.fo.pagination.PageSequenceMaster getNextSimplePageMaster WARNING: subsequences exhausted in page-sequence-master 'single', using previous subsequence Jan 18, 2007 8:34:17 AM org.apache.fop.fo.pagination.PageSequenceMaster getNextSimplePageMaster WARNING: subsequences exhausted in page-sequence-master 'single', using previous subsequence And 3 pages in t.pdf. Anyone any thoughts on what I am doing wrong? Not sure what it tells but XEP 4.5 results in XEP 4.5 build 20060313 (document [system-id file:/C:/DOCUME~1/pc/LOCALS~1/Temp/pro3B6.xml] (validate [validation OK]) (compile (masters (sequence-master [master-name page]) (sequence-master [master-name single])) (sequence [master-reference single] (flow [flow-name xsl-region-body]))) (format (sequence [master-reference single] (flow [1] [error] com.renderx.xep.cmp.NoPageMasterException: state: rest filled even ) (static-content [1]))) (generate [output-format pdf][1])) And a single page pdf All suggestions or guidance warmly welcomed! Thanks, Peter -Original Message- From: Nicol Bolas [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 12:56 AM This is pretty easy, though it won't get you any warnings. Make a 1-length page-sequence-master. That is, make a regular page-sequence-master and then use it in a repeatable-page-master, but only with 1 repetition. That will force the output to be one page. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: XSL FO newbie question - Hide overflow page content
Thanks for all the help. block-container it will be then. Peter -Original Message- From: Vincent Hennebert [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 9:42 AM To: fop-users@xmlgraphics.apache.org Subject: Re: XSL FO newbie question - Hide overflow page content Pascal Sancho a écrit : Hi, IMHO, if fo:page-sequence refers to fo:page-sequence-master with not enough page to render the content, then the pages are repeated (I have not found expected behaviour in REC XSL-FO 1.0 for such case). That's in section 6.4.7 fo:page-sequence-master of the 1.0 spec: It is an error if the entire sequence of sub-sequence-specifiers children is exhausted while some areas returned by an fo:flow are not placed. Implementations may recover, if possible, by re-using the sub-sequence-specifier that was last used to generate a page. snip/ Vincent - 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]
XSL FO newbie question - Hide overflow page content
Hello, Upfront apologies for the 101 nature of this question. I want to make sure an xsl-fo stylesheet will only generate a single page. Possible overflow should be hidden with a warning or, if possible, an error should be generated. I found how fo(p) can hide overflow with a block-container object, but I would rather not use this if not needed. Thanks, Peter
Re: XSL FO newbie question - Hide overflow page content
This is pretty easy, though it won't get you any warnings. Make a 1-length page-sequence-master. That is, make a regular page-sequence-master and then use it in a repeatable-page-master, but only with 1 repetition. That will force the output to be one page. -- View this message in context: http://www.nabble.com/XSL-FO-newbie-question---Hide-overflow-page-content-tf3031234.html#a8422453 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: XSL FO newbie question - Hide overflow page content
Hello, I tried the following with fop 0.93 fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=page page-height=50pt page-width=200pt fo:region-body/fo:region-body /fo:simple-page-master fo:page-sequence-master master-name=single fo:repeatable-page-master-reference master-reference=page maximum-repeats=1/fo:repeatable-page-master-reference /fo:page-sequence-master /fo:layout-master-set fo:page-sequence master-reference=single fo:flow flow-name=xsl-region-body fo:block font-size=28pt linefeed-treatment=preserveLine Line Line/fo:block /fo:flow /fo:page-sequence /fo:root Which results in fop -fo c:\temp\t.fo -pdf c:\temp\t.pdf Jan 18, 2007 8:34:17 AM org.apache.fop.fo.pagination.PageSequenceMaster getNextSimplePageMaster WARNING: subsequences exhausted in page-sequence-master 'single', using previous subsequence Jan 18, 2007 8:34:17 AM org.apache.fop.fo.pagination.PageSequenceMaster getNextSimplePageMaster WARNING: subsequences exhausted in page-sequence-master 'single', using previous subsequence And 3 pages in t.pdf. Anyone any thoughts on what I am doing wrong? Not sure what it tells but XEP 4.5 results in XEP 4.5 build 20060313 (document [system-id file:/C:/DOCUME~1/pc/LOCALS~1/Temp/pro3B6.xml] (validate [validation OK]) (compile (masters (sequence-master [master-name page]) (sequence-master [master-name single])) (sequence [master-reference single] (flow [flow-name xsl-region-body]))) (format (sequence [master-reference single] (flow [1] [error] com.renderx.xep.cmp.NoPageMasterException: state: rest filled even ) (static-content [1]))) (generate [output-format pdf][1])) And a single page pdf All suggestions or guidance warmly welcomed! Thanks, Peter -Original Message- From: Nicol Bolas [mailto:[EMAIL PROTECTED] Sent: Thursday, January 18, 2007 12:56 AM To: fop-users@xmlgraphics.apache.org Subject: Re: XSL FO newbie question - Hide overflow page content This is pretty easy, though it won't get you any warnings. Make a 1-length page-sequence-master. That is, make a regular page-sequence-master and then use it in a repeatable-page-master, but only with 1 repetition. That will force the output to be one page. -- View this message in context: http://www.nabble.com/XSL-FO-newbie- question---Hide-overflow-page-content-tf3031234.html#a8422453 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]