summaryrefslogtreecommitdiff
path: root/eclipse
diff options
context:
space:
mode:
Diffstat (limited to 'eclipse')
-rw-r--r--eclipse/profile-eclipse.xsl10
1 files changed, 5 insertions, 5 deletions
diff --git a/eclipse/profile-eclipse.xsl b/eclipse/profile-eclipse.xsl
index 2d18914..0fcf390 100644
--- a/eclipse/profile-eclipse.xsl
+++ b/eclipse/profile-eclipse.xsl
@@ -31,7 +31,7 @@
<xsl:choose>
<xsl:when test="$rootid != ''">
<xsl:choose>
- <xsl:when test="count($profiled-nodes//*[@id=$rootid]) = 0">
+ <xsl:when test="count($profiled-nodes//*[@id=$rootid or @xml:id=$rootid]) = 0">
<xsl:message terminate="yes">
<xsl:text>ID '</xsl:text>
<xsl:value-of select="$rootid"/>
@@ -44,7 +44,7 @@
</xsl:if>
<xsl:if test="$collect.xref.targets != 'only'">
<xsl:message>Formatting from <xsl:value-of select="$rootid"/></xsl:message>
- <xsl:apply-templates select="$profiled-nodes//*[@id=$rootid]" mode="process.root"/>
+ <xsl:apply-templates select="$profiled-nodes//*[@id=$rootid or @xml:id=$rootid]" mode="process.root"/>
<xsl:call-template name="etoc"/>
<xsl:call-template name="plugin.xml"/>
<xsl:call-template name="helpidx"/>
@@ -87,13 +87,13 @@
<xsl:variable name="title">
<xsl:if test="$eclipse.autolabel=1">
<xsl:variable name="label.markup">
- <xsl:apply-templates select="$profiled-nodes//*[@id=$rootid]" mode="label.markup"/>
+ <xsl:apply-templates select="$profiled-nodes//*[@id=$rootid or @xml:id=$rootid]" mode="label.markup"/>
</xsl:variable>
<xsl:if test="normalize-space($label.markup)">
<xsl:value-of select="concat($label.markup,$autotoc.label.separator)"/>
</xsl:if>
</xsl:if>
- <xsl:apply-templates select="$profiled-nodes//*[@id=$rootid]" mode="title.markup"/>
+ <xsl:apply-templates select="$profiled-nodes//*[@id=$rootid or @xml:id=$rootid]" mode="title.markup"/>
</xsl:variable>
<xsl:variable name="href">
<xsl:call-template name="href.target.with.base.dir">
@@ -102,7 +102,7 @@
</xsl:variable>
<toc label="{normalize-space($title)}" topic="{$href}">
- <xsl:apply-templates select="$profiled-nodes//*[@id=$rootid]/*" mode="etoc"/>
+ <xsl:apply-templates select="$profiled-nodes//*[@id=$rootid or @xml:id=$rootid]/*" mode="etoc"/>
</toc>
</xsl:when>