Hello Swathi,
I produced so far 1200 pages document, and it worked ok. Little bit slow, but I thing that depends on computer. -- Best regards, Alex _________________________________________________________________________ Aleksandar Zivkovic, IT Manager mailto:[EMAIL PROTECTED] Dashofer Holding Ltd (Cyprus) Tel:+357 25 724-441 / Fax:+357 25 724-448 _________________________________________________________________________ Thursday, February 07, 2002, 5:40:02 PM, you wrote: ERSA> Hi, ERSA> When I started writing my xml file, I didn't have a <page> tag. I was ERSA> depending on the <fo:flow> to do the page breaks. ERSA> <fo:flow flow-name="xsl-region-body"> ERSA> <fo:table border-width="0.25pt"> ERSA> <fo:table-column column-width="80pt"/> ERSA> <fo:table-column column-width="180pt"/> ERSA> <fo:table-column column-width="150pt"/> ERSA> <fo:table-column column-width="30pt"/> ERSA> <fo:table-column column-width="40pt"/> ERSA> <fo:table-column column-width="20pt"/> ERSA> <fo:table-column column-width="50pt"/> ERSA> <fo:table-column column-width="150pt"/> ERSA> <fo:table-body font-size="8pt" color="black" font-family="Courier"> ERSA> <xsl:apply-templates select="part"/> ERSA> </fo:table-body> ERSA> </fo:table> ERSA> </fo:flow> ERSA> This worked fine when I had a 10 page document. I have to generate a 3000 ERSA> page document. One of the messages in the discussion group mentioned that ERSA> specifying section and page breaks would be faster in processing a large xml ERSA> file. ERSA> BTW, is FOP useful in processing large files? Or, should I be looking at ERSA> some other products for this purpose? Thanks. ERSA> Swathi Reddy ERSA> -----Original Message----- ERSA> From: Joerg Pietschmann [mailto:[EMAIL PROTECTED]] ERSA> Sent: Thursday, February 07, 2002 1:28 AM ERSA> To: FOP Dev ERSA> Subject: FW: FOP section and page breaks ERSA> "EXT-Reddy, Swathi A" <[EMAIL PROTECTED]> wrote: >> Can someone please post a sample XSLT file that does the section breaks ERSA> and >> page breaks depending on the XML file? I have a XML file that looks like >> this - >> >> <PAGE number="1"> >> ........ >> </PAGE> >> <PAGE number="2"> >> ..... ERSA> Page breaks can be achieved by placing a break-before="page" or a ERSA> break-after="page" attribute on a block level FO. There are a lot ERSA> of different possibilities how to do this, what's appropriate heavily ERSA> depends an your context. ERSA> Here is one example which will work with the XML above: ERSA> <xsl:template match="PAGE"> ERSA> <fo:block break-after="page"> ERSA> <xsl:apply-templates/> ERSA> </fo:block> ERSA> </xsl:template> ERSA> This will create a blank page after the last page, which could be ERSA> easily avoided with some conditional processing. Another potential ERSA> drawback is that the page numbers will be continuous and wont honor ERSA> the number attributes on the XML elements. ERSA> If you want to have the latter, you'll have to use page sequences: ERSA> <xsl:template match="PAGE"> ERSA> <fo:page-sequence master-reference="some-master" ERSA> initial-page-number="{@number}"> ERSA> <xsl:apply-templates/> ERSA> </fo:page-sequence> ERSA> </xsl:template> ERSA> Last point: i hope you know what you are doing by expressing the ERSA> page structure in the XML. Are you sure the content of all XML ERSA> PAGE elements will always fit on the physical pages as defined ERSA> be the FO page masters? >> I can add SECTION tags to tell the XSL file where the section break is. ERSA> What's your definition of a section? It could be quite different from ERSA> mine. ERSA> HTH ERSA> J.Pietschmann ERSA> --------------------------------------------------------------------- ERSA> To unsubscribe, e-mail: [EMAIL PROTECTED] ERSA> For additional commands, email: [EMAIL PROTECTED] ERSA> --------------------------------------------------------------------- ERSA> To unsubscribe, e-mail: [EMAIL PROTECTED] ERSA> For additional commands, email: [EMAIL PROTECTED] . --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]