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] annotating docbook sections


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
bobs@sagehill.net

--------------------------------------------------
From: "Richard Henwood" <rjhenwood@yahoo.co.uk>
Sent: Wednesday, January 02, 2013 1:31 PM
To: <docbook-apps@lists.oasis-open.org>
Cc: "Bob Stayton" <bobs@sagehill.net>
Subject: Re: [docbook-apps] annotating docbook sections



--- On Wed, 2/1/13, Richard Henwood <rjhenwood@yahoo.co.uk> 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>



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