Maven 1.x DocBook Plugin

Footnotes not transformed properly

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    docbook-plugin-1.2, maven 1.0, OSX
  • Number of attachments :
    0

Description

As expected, footnotes are placed at the bottom of the transformed xdoc. However, they are not wrapped in a section or p tag, so when the xdoc goal runs, it simply ignores them and they aren't added to the HTML.

Formatting is subjective, but here's a suggested fix:

Old:
<xsl:apply-templates select="//footnote" mode="base"/>

New:
<xsl:if test="//footnote">
<section name="Notes">
<xsl:apply-templates select="//footnote" mode="base"/>
</section>
</xsl:if>

&&

Old:
<xsl:template match="footnote" mode="base">
<a name="{generate-id(.)}"/><xsl:value-of select="generate-id(.)"/><xsl:text>) </xsl:text><i><xsl:value-of select="."/></i>
</xsl:template>

New:
<xsl:template match="footnote" mode="base">
<subsection><a name="{generate-id(.)}"><xsl:value-of select="generate-id(.)"/><xsl:text>) </xsl:text></a><i><xsl:value-of select="."/></i></subsection>
</xsl:template>

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: