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

Matej Cepl wrote:

I'm redirecting this issue to docbook-apps list.

> this is another newbie problem which I have failed so far to 
> solve. It is <footnote> element or "How to generate element 
> somewhere else". I tried this (very raw draft, of course it 
> would need polishing, but the basic issue is here):

If I understand you correctly, you want list all footnotes at the very 
end of HTML output. Then you must suppress footnotes from normal 
processing, they will just generate number (and possible link):

<xsl:template match="footnote">
   <sup><xsl:number level="any" count="footnote"/></sup>

And then you must collect and process all footnotes at the end of your 

<xsl:template match="/">
       <xsl:apply-templates select="//footnote" mode="process.footnote"/>

<xsl:template match="footnote" mode="process.footnote">
   <div class="footnote">
     <sup><xsl:number level="any" count="footnote"/></sup>
     <!-- Process content of footnote -->

> <xsl:template match="footnote">
> <xsl:element name="{/html/div[last()]}">
>    <xsl:attribute name="class">footnote</xsl:attribute>
>       <xsl:apply-templates/>
>    </xsl:element>
> </xsl:template>

Processing model works in very different way then you expect. Due to 
your language ability you can try reading


   Jirka Kosek  	
   e-mail: jirka@kosek.cz

S/MIME Cryptographic Signature

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