File -> New File -> from Template (Titlepage)

Having trouble installing Oxygen? Got a bug to report? Post it all here.
sam
Posts: 2
Joined: Sat Feb 20, 2010 11:47 am

File -> New File -> from Template (Titlepage)

Post by sam »

hello,
I use the oXygen XML Editor and I want to write a small Book
I proceed as follows:
File -> New File -> from Template -> Docbook 5- Book with XInclude

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng" type="xml"?>
<book xmlns="http://docbook.org/ns/docbook"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
<info>
<title>Book Template Title</title>
<author>
<orgname>Organization Name</orgname>
<address>
<city>City</city>
<street>Street</street>
<postcode>000000</postcode>
<country>Country</country>
</address>
<email>user@example.com</email>
</author>
</info>
<part>
<title>First Part</title>
<subtitle>Subtitle of First Part</subtitle>
<chapter>
<title>Chapter Title</title>
<subtitle>Subtitle of Chapter</subtitle>
<sect1>
<title>Section1 Title</title>
<subtitle>Subtitle of Section 1</subtitle>
<para>Text</para>
</sect1>
</chapter>
</part>
</book>
After Transformation Docbook-File to PDF-File.
I get a PDF-File
First Page ist the titlepage, then the seconde page is a copy from the the first page.
How can I to remove the second page.
Thank you
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: File -> New File -> from Template (Titlepage)

Post by sorin_ristache »

Hello,

The second page is not a duplicate of the first page. It contains the book title inserted at the top of the page instead of middle of the page as on the first page. If you want to remove the second page you have to customize the Docbook XSL stylesheets. The second page is generated at the end of the template

Code: Select all

<xsl:template match="*" mode="page.sequence" name="page.sequence">
from the stylesheet ${frameworks}/docbook/xsl/fo/component.xsl. The fo:block containing the title from the second page comes from the $content variable but you cannot remove this variable from the output generated by this template (the above template with name="page.sequence") because this template is called also for other regions of the output.


Regards,
Sorin
Post Reply