Robert B. wrote:

We have some content within a “cover” section of a DocBook book (book –
info – cover). These don’t seem
to be rendered using the default PDF stylesheets within XMLmind.


This is normal. Out of the box, very few DocBook elements are rendered on the PDF (or HTML) title page.




Do we need to customize the stylesheets to get these to render?


If you take a look at XXE_install_dir/addon/config/docbook OR docbook5 OR docbook51/xsl/fo/titlepage.templates.xsl, you'll find:

---
<xsl:template name="book.titlepage.recto">
...
<xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="d:bookinfo/d:corpauthor"/>
...
---

which specifies that only title, subtitle, corpauthor, authorgroup, author, itermset are possibly rendered in the PDF title page.

However, please note that file titlepage.templates.xsl is not written by hand. It is automatically generated by transforming titlepage.templates.xml using titlepage.xsl.

This design should let you customize what you'll find on your title pages simply by adding and/or removing DocBook elements from titlepage.templates.xml.

I personally never did that but this customization is well explained here:

DocBook XSL: The Complete Guide by Bob Stayton
Part III. Customizing DocBook XSL
Chapter 11. Title page customization

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



--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to