]> granicus.if.org Git - docbook-dsssl/commitdiff
Test for @xml:id as well as @id for $rootid.
authorBob Stayton <bobs@sagehill.net>
Wed, 11 Jul 2012 18:51:03 +0000 (18:51 +0000)
committerBob Stayton <bobs@sagehill.net>
Wed, 11 Jul 2012 18:51:03 +0000 (18:51 +0000)
xsl/profiling/xsl2profile.xsl

index b6648aa4e4df352d294c67391f7ea0adeadeec7c..ecb6501eeead40e41ec2e339e67b40b578cddb3a 100644 (file)
             <xsl:call-template name="string.subst">
               <xsl:with-param name="string" select="."/>
               <xsl:with-param name="target">key('id',$rootid)</xsl:with-param>
-              <xsl:with-param name="replacement">$profiled-nodes//*[@id=$rootid]</xsl:with-param>
+              <xsl:with-param name="replacement">$profiled-nodes//*[@id=$rootid or @xml:id=$rootid]</xsl:with-param>
             </xsl:call-template>
           </xsl:attribute>
         </xsl:when>