</tocitem>
</xsl:template>
-<xsl:template match="sect5|colophon" mode="jhtoc">
+<xsl:template match="sect5|colophon|refentry" mode="jhtoc">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
</mapID>
</xsl:template>
-<xsl:template match="part|reference|preface|chapter|appendix|article"
+<xsl:template match="part|reference|preface|chapter|appendix|refentry|article"
mode="map">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>