OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Titlepage customization


Hi Dan,
The spec file has an error.  This empty element should not be in there:

       <t:titlepage-content t:side="recto">
       </t:titlepage-content>


Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- From: "danmauer" <dan.mauer@gmail.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Wednesday, February 01, 2012 7:47 AM
Subject: Re: [docbook-apps] Titlepage customization



Thanks for responding.  I feel like I must be missing some basic concept
here.  I've looked at the documentation, most of which I think I understand,
but when I use my custom titlepage xml spec file to generate the xsl for the
title page, and then import that into my main style sheet, I still wind up
with the title, revision history and table of contents all butting right up
against each other with no page separation whatsoever.  Here's my titlepage
spec file in its entirety -- maybe where I'm going wrong will become clear
this way.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE t:templates [
<!ENTITY hsize0 "10pt">
<!ENTITY hsize1 "12pt">
<!ENTITY hsize2 "14.4pt">
<!ENTITY hsize3 "17.28pt">
<!ENTITY hsize4 "20.736pt">
<!ENTITY hsize5 "24.8832pt">
<!ENTITY hsize0space "7.5pt"> <!-- 0.75 * hsize0 -->
<!ENTITY hsize1space "9pt"> <!-- 0.75 * hsize1 -->
<!ENTITY hsize2space "10.8pt"> <!-- 0.75 * hsize2 -->
<!ENTITY hsize3space "12.96pt"> <!-- 0.75 * hsize3 -->
<!ENTITY hsize4space "15.552pt"> <!-- 0.75 * hsize4 -->
<!ENTITY hsize5space "18.6624pt"> <!-- 0.75 * hsize5 -->
]>

<t:templates xmlns:t="http://nwalsh.com/docbook/xsl/template/1.0";
   xmlns:param="http://nwalsh.com/docbook/xsl/template/1.0/param";
   xmlns:fo="http://www.w3.org/1999/XSL/Format";
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

   <t:titlepage t:element="article" t:wrapper="fo:block"
       font-family="{$title.fontset}">

       <t:titlepage-content t:side="recto"
           start-indent="0pt"
           text-align="center">

           <title t:named-template="component.title"
               param:node="ancestor-or-self::article[1]"
               keep-with-next.within-column="always"
               font-size="&hsize5;"
               font-weight="bold"/>

           <subtitle/>

           <corpauthor space-before="0.5em"
               font-size="&hsize2;"/>
           <authorgroup space-before="0.5em"
               font-size="&hsize2;"/>
           <author space-before="0.5em"
               font-size="&hsize2;"/>
           <!-- If you add editor, include this t:predicate attribute
               because only the first editor generates the list of editors.
               <editor t:predicate="[position() = 1]"/>
           -->
           <othercredit space-before="0.5em"/>
           <releaseinfo space-before="0.5em"/>
           <copyright space-before="0.5em"/>
           <legalnotice text-align="start"
               margin-left="0.5in"
               margin-right="0.5in"
               font-family="{$body.fontset}"/>
           <pubdate space-before="0.5em"/>
       </t:titlepage-content>

       <t:titlepage-content t:side="verso">
           <revhistory space-before="0.5em"/>
       </t:titlepage-content>

       <t:titlepage-content t:side="recto">
       </t:titlepage-content>

       <t:titlepage-separator>
           <fo:block break-after="page"/>
       </t:titlepage-separator>

       <t:titlepage-before t:side="recto">
           <fo:block break-after="page"/>
       </t:titlepage-before>

       <t:titlepage-before t:side="verso">
           <fo:block break-after="page"/>
       </t:titlepage-before>
   </t:titlepage>

</t:templates>



Bob Stayton wrote:

Hi,
I would suggest that since your article titlepage plays out like a book's
titlepage
that you look at the specifications for the book's titlepage in that file
as a model.
There you will see two instances of page breaking with this:

 <fo:block break-after="page"/>

I presume you have seen this documentation on the subject:

http://www.sagehill.net/docbookxsl/HTMLTitlePage.html#TitlePageElems

----- Original Message ----- From: "danmauer" <dan.mauer@gmail.com>
So I'm having a hard time comprehending how to properly build a custom
titlepage specification XML file.

I've got the process down -- create the specification XML, transform it
using the template/titlepage.xsl stylesheet to generate a custom XSL
titlepage stylesheet, then import that into my regular customization
stylesheet.

What I can't figure out is how to actually write the template.  My
document
is an <article>, and in print format I want it to start out with a single
front title page, including the title, subtitle, a couple of PNG images,
and
a date.  Then a second page containing the revision history, and finally
a
third page with the table of contents.

I've based my titlepage spec file on the <t:titlepage t:element="article"
t:wrapper="fo:block"
            font-family="{$title.fontset}">...</t:titlepage> section of
the
titlepage.templates.xml file, I have no transformation errors and it's
definitely using the custom template, as if I (for example) remove the
revhistory section from the spec file, it disappears from my final
document.

However, nothing I've tried seems to generate a page break, and I'm not
quite grasping how to embed and position the graphics either.

Any help would be much appreciated.

Thanks!
-Dan


--
View this message in context: http://old.nabble.com/Titlepage-customization-tp33238812p33243917.html
Sent from the docbook apps mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]