summaryrefslogtreecommitdiff
path: root/xhtml-1_1/profile-chunk-code.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'xhtml-1_1/profile-chunk-code.xsl')
-rw-r--r--xhtml-1_1/profile-chunk-code.xsl6
1 files changed, 3 insertions, 3 deletions
diff --git a/xhtml-1_1/profile-chunk-code.xsl b/xhtml-1_1/profile-chunk-code.xsl
index 90f540f..8b86447 100644
--- a/xhtml-1_1/profile-chunk-code.xsl
+++ b/xhtml-1_1/profile-chunk-code.xsl
@@ -443,7 +443,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"/>
@@ -455,9 +455,9 @@
<xsl:apply-templates select="key('id', $rootid)" mode="collect.targets"/>
</xsl:if>
<xsl:if test="$collect.xref.targets != 'only'">
- <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:if test="$tex.math.in.alt != ''">
- <xsl:apply-templates select="$profiled-nodes//*[@id=$rootid]" mode="collect.tex.math"/>
+ <xsl:apply-templates select="$profiled-nodes//*[@id=$rootid or @xml:id=$rootid]" mode="collect.tex.math"/>
</xsl:if>
<xsl:if test="$generate.manifest != 0">
<xsl:call-template name="generate.manifest">