since I'm not to familiar with xsl yet, I would like to do some kind of debugging. I want to understand it in a better way, which template rule created which kind of output. The hard coded way is something like this:
<xsl:template match="mybold">
{mybold}<b>
<xsl:apply-templates/>
</b>{/mybold}
</xsl:template>
It results in the additional debug braces {mybold} and {/mybold}
The disadvantage is, that I cannot switch it on or off. So I would prefer to have a global variable 'debug' with values on/off and a code snippet, that decides within any template, whether the debug braces are to be printed. Someone got an idea, how to do that - without being too complicated ;-) ?
thx again
<xsl:template match="mybold">
{mybold}<b>
<xsl:apply-templates/>
</b>{/mybold}
</xsl:template>
It results in the additional debug braces {mybold} and {/mybold}
The disadvantage is, that I cannot switch it on or off. So I would prefer to have a global variable 'debug' with values on/off and a code snippet, that decides within any template, whether the debug braces are to be printed. Someone got an idea, how to do that - without being too complicated ;-) ?
thx again