Jason Novotny | 3 Jun 10:27 2004
Picon

extra page between cover and chapter with docbook


Hi and sorry for posting a question that is likely asked numerous times 
but i couldn't find it on the FAQ. I'm using the docbook stylesheets and 
after using FOP to render the fop I see my title on one page, the 
copyright info on the very top of the second page and the third page is 
blank. Any idea what I can do to just render the title and copyright on 
the same page and have the TOC start on page? This is my docbook below:

<book>
  <title>My Guide</title>
  <bookinfo>
    <copyright>
      <year>2003, 2004</year>
      <holder>My Project</holder>
    </copyright>
  </bookinfo>

<chapter id="intro">

..

</>

    Thanks very much, Jason
Jason Novotny | 3 Jun 12:02 2004
Picon

Re: [docbook-apps] extra page between cover and chapter with docbook


Hi Bob,

    Thanks-- that worked just fine to get rid of the balnk page. 
However, I still see the title and copyright on separate pages when I 
want them both on the same cover page. I've been browsing your great 
document and I confess it seems a little daunting. I've tried the following:

Copying docbook-xsl-1.65.1/fo/titlepage.templates.xml  to my  titlepage.xml

running xslt as suggested to create my xsl:

xsltproc -output titlepage.xsl docbook-xsl-1.65.1/template/titlepage.xsl 
titlepage.xml

and then including it in my customization file:

<xsl:include href="titlepage.xsl"/>

Now I get:

 [xslt] : Fatal Error! java.lang.RuntimeException: ElemTemplateElement 
error: Found more than one template named: book.titlepage.separator 
Cause: java.lang.RuntimeException: ElemTemplateElement error: Found more 
than one template named: book.titlepage.separator

    Thanks, Jason

Bob Stayton wrote:

(Continue reading)

Jason Novotny | 4 Jun 11:12 2004
Picon

Re: [docbook-apps] extra page between cover and chapter with docbook


Hi Bob,

    I'm using the following two lines which should be ok, no?

<xsl:import href=" <at> docbook.xsl.base <at> /fo/docbook.xsl"/>

<!-- Specify title page properties -->
<xsl:include href="titlepage.xsl"/>

    Thanks, Jason

Bob Stayton wrote:

>Hi,
>Are you importing or including the docbook.xsl stylesheet in your
>customization layer?  It must be imported.  The difference permits the
>mechanism of import precedence to allow your new template with that name to
>override the existing one.
>
>Bob Stayton
>Sagehill Enterprises
>DocBook Consulting
>bobs <at> sagehill.net
>
>
>----- Original Message ----- 
>From: "Jason Novotny" <novotny <at> aei.mpg.de>
>To: "Bob Stayton" <bobs <at> sagehill.net>
>Cc: <fop-user <at> xml.apache.org>; <docbook-apps <at> lists.oasis-open.org>
(Continue reading)

Jason Novotny | 4 Jun 12:08 2004
Picon

Re: [docbook-apps] extra page between cover and chapter with docbook


    Ok, it should be <xsl:import ../> for both, duh! ;-) However, I have 
used just the following section for my title.xml (and then create the 
xsl which is imported):

<t:titlepage t:element="book" t:wrapper="fo:block">
    <t:titlepage-content t:side="recto">
      <title
             t:named-template="division.title"
             param:node="ancestor-or-self::book[1]"
             text-align="center"
             font-size="&hsize5;"
             space-before="&hsize5space;"
             font-weight="bold"
             font-family="{$title.fontset}"/>
      <author font-size="&hsize3;"
              space-before="&hsize2space;"
              keep-with-next="always"/>
        <copyright/>
    </t:titlepage-content>

</t:titlepage>

but I still see the second page which has a horizontal line at the top 
and the copyright info-- how can I just get rid of this second page as 
well? Do I need to override <t:titlepage-content t:side="verso"> somehow 
to not be used? Is this the second page that gets printed?

    Thanks, Jason

(Continue reading)


Gmane