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



--- 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]