Re: problems big files xml >1Mo
Philippe Pithon wrote: By using more of fo:page-sequence I shall have no more problem of crash or slowness? Even if my file xml is 5 Mb? It depends. FOP is already capable of streaming processing, this means after a page has been rendered, the source and intermediate data necessary for the rendering are discarded. Of yourse, these attempts at conserving ressources are thwarted by using forward references in the source, in particular TOCs at the beginning of the document and the ubiquitous "page N of TOTAL". Obviously, has to rerender pages with such constructs after it has resolved the references, and all pages in between will be held in memory for simplicity. Rendering the document in several page sequences wont help you if you still refer to the last page from somewhere near the beginning. If you have problems rendering large documents, check for forward references first, remove them and check whether it is better afterwards. Dividing your document in several page sequences is only a second step, but also helpful in many situations. As a last note, the size of the XML or FO source can be rather uncorrelated to FOP memory problems for other reasons, for example i had a 40MB FO document once which consisted mostly of ignorable or collapsable white space (it rendered to a 3MB PDF). J.Pietschmann
Re: problems big files xml >1Mo
Philippe Pithon wrote: I do not manage to set up this after 2 hours of attempt!!! At what level in the code it is necessary to place this paragraph? After this?: < / fo:layout-master-set > Yes. I forgot the master-reference here. Should be 20, of course. What are your problems? J.Pietschmann
RE: problems big files xml >1Mo
I do not manage to set up this after 2 hours of attempt!!! At what level in the code it is necessary to place this paragraph? After this?: < / fo:layout-master-set > -Message d'origine- De : J.Pietschmann [mailto:[EMAIL PROTECTED] Envoye : mardi 26 mars 2002 21:30 A : [EMAIL PROTECTED] Objet : Re: problems big files xml >1Mo [EMAIL PROTECTED] wrote: > I don't think these are the best solutions because you loose some of your > XML tag formatting with xsl:text. Worse, the code will fail under certain circumstances, for reasons hard to understand for the average user. It is likely that it will always fail in future distributions of FOP. The drawbacks of using disable-output-escaping are discussed in regular intervals on the XSL list, search through their archive. A solution which always works is the following: ... This is known as "grouping by position", one of the simpler grouping problems. Actually, this is an XSLT problem. There is more expertise available on the XSL list, and there is an XSL FAQ at http://www.dpawson.co.uk/ J.Pietschmann
RE: problems big files xml >1Mo
Thank you! And so to end :-) By using more of fo:page-sequence I shall have no more problem of crash or slowness? Even if my file xml is 5 Mb? -Message d'origine- De : J.Pietschmann [mailto:[EMAIL PROTECTED] Envoye : mardi 26 mars 2002 21:30 A : [EMAIL PROTECTED] Objet : Re: problems big files xml >1Mo [EMAIL PROTECTED] wrote: > I don't think these are the best solutions because you loose some of your > XML tag formatting with xsl:text. Worse, the code will fail under certain circumstances, for reasons hard to understand for the average user. It is likely that it will always fail in future distributions of FOP. The drawbacks of using disable-output-escaping are discussed in regular intervals on the XSL list, search through their archive. A solution which always works is the following: ... This is known as "grouping by position", one of the simpler grouping problems. Actually, this is an XSLT problem. There is more expertise available on the XSL list, and there is an XSL FAQ at http://www.dpawson.co.uk/ J.Pietschmann
Re: problems big files xml >1Mo
[EMAIL PROTECTED] wrote: I don't think these are the best solutions because you loose some of your XML tag formatting with xsl:text. Worse, the code will fail under certain circumstances, for reasons hard to understand for the average user. It is likely that it will always fail in future distributions of FOP. The drawbacks of using disable-output-escaping are discussed in regular intervals on the XSL list, search through their archive. A solution which always works is the following: ... This is known as "grouping by position", one of the simpler grouping problems. Actually, this is an XSLT problem. There is more expertise available on the XSL list, and there is an XSL FAQ at http://www.dpawson.co.uk/ J.Pietschmann
RE: problems big files xml >1Mo
Thank you! But I have maybe another idea for my problems of slowness on big files: I am going to cut my files xml Example: Edit.xml 1Mo - > edit.pdf (1Mo) Edit~1.xml (500Ko) - > edit~1 .pdf (500Ko) Edit~2.xml (500Ko) - > edit~2.pdf (500Ko) This is intended for printing So printing of 2 files PDF ! That should be faster... -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoye : mardi 26 mars 2002 15:05 A : [EMAIL PROTECTED] Objet : Re: problems big files xml >1Mo I don't think these are the best solutions because you loose some of your XML tag formatting with xsl:text. But this is one way you could do it. </page-sequence> <page-sequence> or your test could look something like ... JohnPT [EMAIL PROTECTED] APACHE.ORG To: <[EMAIL PROTECTED]> cc: 03/26/02 03:53 AM Subject: problems big files xml >1Mo Please respond to fop-user Hello! I am a French user of FOP I read e-mails on the problems of crash and slowness on big files > 1Mo And apparently there are not too many solutions Maybe being resolved in the next version ? At present I have that a "page - sequence" for all the document. According to the users of FOP, it's necessary of some "fo:page-sequence" to reduce the slowness. How to insert "page-sequence" everything 20 rows in xsl? (Without inserting syntaxe in my xml) Are there other solutions? My files xml are structured as follows: 045393 1996-01-02 00:00:00.0 99001 SI 1 8 045394 1996-01-03 00:00:00.0 99001 SI 1 8
Re: problems big files xml >1Mo
I don't think these are the best solutions because you loose some of your XML tag formatting with xsl:text. But this is one way you could do it.or your test could look something like ... JohnPT [EMAIL PROTECTED] APACHE.ORG To: <[EMAIL PROTECTED]> cc: 03/26/02 03:53 AM Subject: problems big files xml >1Mo Please respond to fop-user Hello! I am a French user of FOP I read e-mails on the problems of crash and slowness on big files > 1Mo And apparently there are not too many solutions Maybe being resolved in the next version ? At present I have that a "page - sequence" for all the document. According to the users of FOP, it's necessary of some "fo:page-sequence" to reduce the slowness. How to insert "page-sequence" everything 20 rows in xsl? (Without inserting syntaxe in my xml) Are there other solutions? My files xml are structured as follows: 045393 1996-01-02 00:00:00.0 99001 SI 1 8 045394 1996-01-03 00:00:00.0 99001 SI 1 8