[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Wrap some elements in a titlepage spec file?
Hi Tony,
No, the template system is not set up for nesting titlepage
elements. It uses the element name of each child of
t:titlepage-content to create a match attribute in the generated
xsl:template. The system is designed to allow the user to specify
which titlepage elements should appear, in what order, and with
specific properties, without having to write XSL.
For more complex needs, I have used the t:named-template feature
to call a custom template (see for example the title element for
book), which could process both title and subtitle. Most often,
though, I just write the XSL I need in custom templates
"book.titlepage.recto" and "book.titlepage.verso" to completely
override the generated templates.
Bob Stayton bobs@sagehill.net
Is is possible to wrap two or more elements inside a
<t:titlepage-content> to generate an FO that encloses the formatted
elements? It seems that <t:titlepage-content> can only contain a
sequence of empty elements.
I want an article's title and subtitle to be formatted inside an
<fo:block> that provides their common background. That doesn't seem
possible with the templating mechanism (except by the template that's
called for the title also finding and processing the subtitle). Is it
possible?
Regards,
Tony Graham.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]