I don't know why this was not on the top level before. Maybe some XSLT processors choked on it. I hope this will be OK now.
<xsl:template match="xsl:template[@match='/' or @name='hhc-main' or @name='hhp-main']">
<xsl:if test="@match='/'">
<xslo:include href="../profiling/profile-mode.xsl"/>
- </xsl:if>
- <xsl:copy>
- <xsl:copy-of select="@*"/>
<xslo:variable name="profiled-content">
- <xslo:apply-templates select="." mode="profile"/>
+ <xslo:apply-templates select="/" mode="profile"/>
</xslo:variable>
<xslo:variable name="profiled-nodes" select="exslt:node-set($profiled-content)"/>
-
+ </xsl:if>
+ <xsl:copy>
+ <xsl:copy-of select="@*"/>
<xsl:apply-templates mode="correct"/>
</xsl:copy>
</xsl:template>