an extra blank page in the .pdf output

When I create a .pdf from my file I get an extra page that contains only a horizontal line at the top and bottom of the page. This page is always the 3rd page of the document - 1st page - Cover page or Title page 2nd page - Copyright page 3rd page - empty except for two horizontal lines 4th page onwards - chapter 1 and onwards Is the mostly blank page supposed to be there? If not, what do I do to get rid of it? I just noticed that the toc is not appearing on the page, could this page be a blank toc? Regards, Chip Wiegand Computer Services Simrad, Inc 425-778-8821 425-771-7211 (FAX)

Hello Chip, If you are using the Docbook XSL stylesheets and the FOP processor to generate the pdf file the empty page seems to be a bug in FOP. In the XSL-FO file generated by the stylesheets the pages that follow the title and copyright pages start a new page sequence. The FOP processor should not generate an empty page for a break-after property before a new page sequence. To avoid that use in your transformation scenario a Docbook XSL customization layer that replaces the template book.titlepage.separator with an empty template: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="../frameworks/docbook/xsl/fo/docbook.xsl"/> <xsl:template name="book.titlepage.separator"/> </xsl:stylesheet> I just tried it on a large Docbook document and the empty page is not generated any more. You have to replace the path to the docbook.xsl stylesheet with a valid path on your machine. For instructions about creating and using a Docbook customization layer in <oXygen/> see the demo: http://www.oxygenxml.com/demo/DocbookCustomization/docbookCustomization.html Best regards, Sorin Chip Wiegand wrote:
When I create a .pdf from my file I get an extra page that contains only a horizontal line at the top and bottom of the page. This page is always the 3rd page of the document - 1st page - Cover page or Title page 2nd page - Copyright page 3rd page - empty except for two horizontal lines 4th page onwards - chapter 1 and onwards
Is the mostly blank page supposed to be there? If not, what do I do to get rid of it? I just noticed that the toc is not appearing on the page, could this page be a blank toc?
Regards,
Chip Wiegand Computer Services Simrad, Inc 425-778-8821 425-771-7211 (FAX) _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

oxygen-user-bounces@oxygenxml.com wrote on 08/10/2005 01:24:32 AM:
Hello Chip,
If you are using the Docbook XSL stylesheets and the FOP processor to generate the pdf file the empty page seems to be a bug in FOP. In the XSL-FO file generated by the stylesheets the pages that follow the title
and copyright pages start a new page sequence. The FOP processor should not generate an empty page for a break-after property before a new page sequence. To avoid that use in your transformation scenario a Docbook XSL customization layer that replaces the template book.titlepage.separator with an empty template:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="../frameworks/docbook/xsl/fo/docbook.xsl"/> <xsl:template name="book.titlepage.separator"/> </xsl:stylesheet>
Thanks for the help, I have my own .xsl stylesheet already so I added your suggested code to it and it works fine. It would only work with the code - <xsl:template name="book.titlepage.separator"/> - and not the other stuff, I already have the other lines in my .xsl. But what I don't understand is why that one line does anything at all? I don't see anything there to tell the processor to do anything. I must not be understanding it correctly. So, here's another one I hope can be fixed by just adding a bit of code to the .xsl - How do I define a smaller size font for chapter titles? I found some info in the Docbook manual, chapter 5, on customizing Docbook, but that looks way too complicated for what I want to do. Regards, Chip
I just tried it on a large Docbook document and the empty page is not generated any more. You have to replace the path to the docbook.xsl stylesheet with a valid path on your machine.
For instructions about creating and using a Docbook customization layer in <oXygen/> see the demo:
http://www.oxygenxml.com/demo/DocbookCustomization/docbookCustomization.html
Best regards, Sorin
Chip Wiegand wrote:
When I create a .pdf from my file I get an extra page that contains
horizontal line at the top and bottom of the page. This page is always
3rd page of the document - 1st page - Cover page or Title page 2nd page - Copyright page 3rd page - empty except for two horizontal lines 4th page onwards - chapter 1 and onwards
Is the mostly blank page supposed to be there? If not, what do I do to get rid of it? I just noticed that the toc is not appearing on the page, could this
only a the page
be a blank toc?
Regards,
Chip Wiegand Computer Services Simrad, Inc 425-778-8821 425-771-7211 (FAX) _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Chip Wiegand wrote:
oxygen-user-bounces@oxygenxml.com wrote on 08/10/2005 01:24:32 AM:
Hello Chip,
If you are using the Docbook XSL stylesheets and the FOP processor to generate the pdf file the empty page seems to be a bug in FOP. In the XSL-FO file generated by the stylesheets the pages that follow the title
and copyright pages start a new page sequence. The FOP processor should not generate an empty page for a break-after property before a new page sequence. To avoid that use in your transformation scenario a Docbook XSL customization layer that replaces the template book.titlepage.separator with an empty template:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="../frameworks/docbook/xsl/fo/docbook.xsl"/> <xsl:template name="book.titlepage.separator"/> </xsl:stylesheet>
Thanks for the help, I have my own .xsl stylesheet already so I added your suggested code to it and it works fine. It would only work with the code - <xsl:template name="book.titlepage.separator"/> - and not the other stuff, I already have the other lines in my .xsl. But what I don't understand is why that one line does anything at all? I don't see anything there to tell the processor to do anything. I must not be understanding it correctly.
Hello Chip, That line added to your stylesheet shortcircuits the default template "book.titlepage.separator" from the imported docbook.xsl template because the problem is in that template and we don't want it executed. It is a general XSLT technique. You can read more about importing stylesheets and import precedence in the XSLT specification: http://www.w3.org/TR/xslt#import
So, here's another one I hope can be fixed by just adding a bit of code to the .xsl - How do I define a smaller size font for chapter titles? I found some info in the Docbook manual, chapter 5, on customizing Docbook, but that looks way too complicated for what I want to do.
I think you mean Norman Walsh's DocBook: The Definitive Guide. You don't need that. You need Bob Stayton's DocBook XSL: The Complete Guide. Look at: http://www.sagehill.net/docbookxsl/TitleFontSizes.html#ChapterTitles Use the first method - customizing the titlepage specification file. You have to customize the chapter title specification in titlepage.templates.xml: in the *titlepage* element with the *element="chapter"* attribute change the value of the *font-size* attribute inside the *titlepage-content* element. First read the introduction from: http://www.sagehill.net/docbookxsl/TitleFontSizes.html
Regards, Chip
Best regards, Sorin
I just tried it on a large Docbook document and the empty page is not generated any more. You have to replace the path to the docbook.xsl stylesheet with a valid path on your machine.
For instructions about creating and using a Docbook customization layer in <oXygen/> see the demo:
http://www.oxygenxml.com/demo/DocbookCustomization/docbookCustomization.html
Best regards, Sorin
Chip Wiegand wrote:
When I create a .pdf from my file I get an extra page that contains
only a
horizontal line at the top and bottom of the page. This page is always
the
3rd page of the document - 1st page - Cover page or Title page 2nd page - Copyright page 3rd page - empty except for two horizontal lines 4th page onwards - chapter 1 and onwards
Is the mostly blank page supposed to be there? If not, what do I do to
get
rid of it? I just noticed that the toc is not appearing on the page, could this
page
be a blank toc?
Regards,
Chip Wiegand Computer Services Simrad, Inc 425-778-8821 425-771-7211 (FAX)

Use the first method - customizing the titlepage specification file. You
have to customize the chapter title specification in titlepage.templates.xml: in the *titlepage* element with the *element="chapter"* attribute change the value of the *font-size* attribute inside the *titlepage-content* element. First read the introduction from:
I did a search on my pc and found 4 instances of titlepage.templates.xml - C:\Program Files\GemDoc\components\ssheets\xslt\docbook-xsl-1.60.1\html C:\Program Files\GemDoc\components\ssheets\xslt\docbook-xsl-1.60.1\fo C:\Program Files\Oxygen 6.1\frameworks\docbook\xsl\html C:\Program Files\Oxygen 6.1\frameworks\docbook\xsl\fo which one would I edit? Thanks, Chip

Hello Chip, First read the introduction from: http://www.sagehill.net/docbookxsl/TitleFontSizes.html as I said before. Titlepage customization is a process with several steps and first you have to be familiar with some special DocBook concepts. From the above link you are linked to other relevant pages that clearly explain the process. Please study them first. Best regards, Sorin Chip Wiegand wrote:
Use the first method - customizing the titlepage specification file. You
have to customize the chapter title specification in titlepage.templates.xml: in the *titlepage* element with the *element="chapter"* attribute change the value of the *font-size* attribute inside the *titlepage-content* element. First read the introduction from:
I did a search on my pc and found 4 instances of titlepage.templates.xml - C:\Program Files\GemDoc\components\ssheets\xslt\docbook-xsl-1.60.1\html C:\Program Files\GemDoc\components\ssheets\xslt\docbook-xsl-1.60.1\fo C:\Program Files\Oxygen 6.1\frameworks\docbook\xsl\html C:\Program Files\Oxygen 6.1\frameworks\docbook\xsl\fo
which one would I edit?
Thanks, Chip

oxygen-user-bounces@oxygenxml.com wrote on 08/11/2005 08:41:32 AM:
Hello Chip,
First read the introduction from:
http://www.sagehill.net/docbookxsl/TitleFontSizes.html
as I said before. Titlepage customization is a process with several steps and first you have to be familiar with some special DocBook concepts. From the above link you are linked to other relevant pages that clearly explain the process. Please study them first.
Best regards, Sorin
Chip Wiegand wrote:
Use the first method - customizing the titlepage specification file. You
have to customize the chapter title specification in titlepage.templates.xml: in the *titlepage* element with the *element="chapter"* attribute change the value of the *font-size* attribute inside the *titlepage-content* element. First read the introduction from:
I did a search on my pc and found 4 instances of
Hi, I've read that section several times now and it appears there are 3 ways to edit the title properties - customize the titlepage spec file or customize the attribute-set or customize the template So, it looks like the easiest way to get what I need done is to simply change the font-size in the titlepage spec (since I am only trying to make the title font smaller). This is what I have now - <t:titlepage t:element="chapter" t:wrapper="fo:block" font-family="{$title.fontset}"> <t:titlepage-content t:side="recto" margin-left="{$title.margin.left}"> <title t:named-template="component.title" param:node="ancestor-or-self::chapter[1]" font-size="&hsize3;" font-weight="bold"/> The font-size was originally "&hsize5;", but the resulting .pdf file does not reflect the smaller size font in chapter titles, they are still size 5 even though the template is set to size 3. I'm I interpreting the manual incorrectly? Regards, chip titlepage.templates.xml -
C:\Program Files\GemDoc\components\ssheets\xslt\docbook-xsl-1.60.1\html C:\Program Files\GemDoc\components\ssheets\xslt\docbook-xsl-1.60.1\fo C:\Program Files\Oxygen 6.1\frameworks\docbook\xsl\html C:\Program Files\Oxygen 6.1\frameworks\docbook\xsl\fo
which one would I edit?
Thanks, Chip
oXygen-user mailing list oXygen-user@oxygenxml.com http://www.oxygenxml.com/mailman/listinfo/oxygen-user
participants (2)
-
Chip Wiegand
-
Sorin Ristache