| key('id',$rootid)//sect3
| key('id',$rootid)//sect4
| key('id',$rootid)//sect5
- | key('id',$rootid)//indexterm"
+ | key('id',$rootid)//indexterm
+ | key('id',$rootid)//*[@id]"
mode="map"/>
</xsl:when>
<xsl:otherwise>
| //sect3
| //sect4
| //sect5
- | //indexterm"
+ | //indexterm
+ | //*[@id]"
mode="map"/>
</xsl:otherwise>
</xsl:choose>
</mapID>
</xsl:template>
+<xsl:template match="*[@id]" mode="map">
+ <xsl:variable name="id">
+ <xsl:call-template name="object.id"/>
+ </xsl:variable>
+
+ <mapID target="{$id}">
+ <xsl:attribute name="url">
+ <xsl:call-template name="href.target.uri"/>
+ </xsl:attribute>
+ </mapID>
+</xsl:template>
+
<!-- ==================================================================== -->
<xsl:template name="helpidx">