Hi,
How about something like:
<xsl:param name="debug"/>
<xsl:template match="random-template">
<xsl:choose>
<xsl:when test="not(boolean($debug))">
<div class="{@some-attribute}">
<xsl:apply-templates/>
</div>
<xsl:when>
<xsl:otherwise>
<xsl:text>---oO Debugging random-template match Oo---
div/@class = </xsl:text>
<xsl:value-of select="@some-attribute"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
make sense?
best,
-Rob
> -----Original Message-----
> From: Mariella Di Giacomo [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, November 26, 2002 4:50 PM
> To: [EMAIL PROTECTED]
> Subject: which is the best way to debug an XSLT file ?
>
>
> Hello,
>
> I would like to ask a question, even though I do not know if this is the
> correct mailing list.
>
> Which is the best way to debug an XSLT file, especially when I would like
> to know
> the time spent for a loop, an extension function, if statement, etc.
>
>
> Thanks a lot in advance for your help,
>
> Mariella
>