Right, what I provided was just a bare bones solution to your immediate
problem of missing titles. You are using a highly stripped down template
for sections, which is why I recommended looking at what the stock template
does. There might be other features missing for you as well.
Bob Stayton
Sagehill Enterprises
[email protected]
--------------------------------------------------
From: "Richard Henwood" <[email protected]>
Sent: Wednesday, January 02, 2013 1:31 PM
To: <[email protected]>
Cc: "Bob Stayton" <[email protected]>
Subject: Re: [docbook-apps] annotating docbook sections
--- On Wed, 2/1/13, Richard Henwood <[email protected]> wrote:
Thanks for this prompt advice and
guidance Bob.
What I'm noticing is with the recipe for section below, the
line number in the section toc entry is omitted. I've played
around with various configurations to try and fix this: if
you have any further advice, I would be grateful!
Answering my own question:
It seems I need to include the $id into a new block - or at least, this
worked for me:
<xsl:template match="d:section">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<xsl:message>found section</xsl:message>
<xsl:call-template name='section.titlepage'/>
<fo:block id="{$id}">
<fo:external-graphic src="section.png"/>
</fo:block>
<xsl:apply-templates/>
</xsl:template>
cheers,
Richard
<snip previous correspondence>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]