This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 1.48 titlepage generation.


On Sun, Jan 13, 2002 at 07:34:42AM +0000, Dave Pawson wrote:
> Trying to build an fo document with xsl stylesheets 1.48,
> For the titlepage,
> Using
> 
> <t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0";
>               base-stylesheet="/sgml/docbook/xsl148/fo/docbook.xsl">
> 
> <t:variable name="section.autonumber" select="true()"/>
> 
> <t:titlepage element="book" side="recto">
>    <title predicate="[1]"/>
>    <subtitle predicate="[1]"/>
>    <author/>
>    <authorgroup>
>      <t:or>
>        <corpauthor/>
>        <author/>
>        <editor/>
>      </t:or>
>    </authorgroup>
>    <editor/>
>    <releaseinfo/>
>    <copyright/>
>    <pubdate/>
>    <revision/>
>    <revhistory/>
>    <abstract/>
> </t:titlepage>
> 
> <t:biblioentry>
>    <abbrev/>
>    <title/>
>    <t:or>
>      <authorgroup/>
>      <author/>
>    </t:or>
>    <biblioset/>
> </t:biblioentry>
> 
> </t:templates>
> 
> 
> I'm getting as output
> 
> 
> <?xml version="1.0" encoding="utf-8"?><xsl:stylesheet 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
> 
> <!-- This stylesheet was created by template/titlepage.xsl; do not edit it 
> by hand. -->
> 
> <xsl:import href="/sgml/docbook/xsl148/fo/docbook.xsl"/>
> 
>    <xsl:apply-templates select="corpauthor|author|editor" 
> mode="book.titlepage.recto.auto.mode"/>
>    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Your title page template file was modeled after
the testtemplate.xml file in the template directory, right?

That test file is wrong, because it is missing
the <t:titlepage-content> element.

Replace: 

> <t:titlepage element="book" side="recto">
>    <title predicate="[1]"/>
>    <subtitle predicate="[1]"/>
>    etc.

with:

<t:titlepage element="book"> 
  <t:titlepage-content side="recto">
   <title predicate="[1]"/>
   <subtitle predicate="[1]"/>
   etc.

That must be an old test file.  I filed a source forge bug
on it.

You might want to read the template/titlepage.html
doc file included with distribution.

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]