Subject: [xsl] xsl:fo - keeps and breaks problem.. From: "Andy Joslin" <andy.joslin@xxxxxxxx> Date: Thu, 12 Sep 2002 09:08:52 +0100 |
Hi All I'm using XSL/FOP to generate PDF files from an XML source document... Roughly speaking, the XML contains a long list of nodes of the same element name with different attributes and child nodes.. e.g. simplified.. <foo type="a" name="Fooey"/> <foo type="b" name="Dooey"/> etc. some nodes have nested foo's inside them... <foo type="a" name="Fooey"> <foo type="x" name="FooChild"/> <foo type="y" name="FooChild2"/> </foo> So far I've written a single template match for the foo element that returns a fo:block (of full page width) for each match and calls itself if it has any foo children, thereby producing nested fo:blocks where appropriate.. The problem that I'm having is when trying to prevent any one foo result from splitting over two pages. I'd like to keep all the contents of one foo match together (ignore the nested ones for now); so either encourage it to keep on one page or break and go to the next. I've played around with adding the break-after/break-before attributes on the fo:block inside the template, but because it is being called recursively this results in one page for each result (I can probably fit about 6 matches on one page before it needs to break) Any ideas about how to control this ? Maybe I'm missing a simple attribute somewhere... Cheers Andy ________________________________________________________________________ This e-mail and its attachments are confidential. If you are not the intended recipient of this e-mail message, please telephone or e-mail us immediately, delete this message from your system and do not read, copy, distribute, disclose or otherwise use this e-mail message and any attachments. Although ri3k Limited believes this e-mail and any attachments to be free of any virus or other defect which may affect your computer, it is the responsibility of the recipient to ensure that it is virus free and ri3k Limited does not accept any responsibility for any loss or damage in any way from its use. ri3k Limited Registered in England: 10-12 Ely Place, London, EC1N 6RY Company Number: 3909745 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] performance with template, Michael Kay | Thread | Re: [xsl] xsl:fo - keeps and breaks, J.Pietschmann |
Re: [xsl] encoding and XSL Transfor, Chuck White | Date | RE: [xsl] performance with template, Michael Kay |
Month |