Re: [xsl] name of the current mode

Subject: Re: [xsl] name of the current mode
From: Stefan Krause <stf@xxxxxxxx>
Date: Sat, 14 Nov 2009 20:46:49 +0100
Michael Kay schrieb:
> 
> I can't think of any way of using the information, why would you want it?

For debugging purposes, I often use a general matching template like this:

<xsl:template match="*" mode="#all">
	<xsl:message>No template matching <xsl:value-of
select="name(.)"/></xsl:message>
</xsl:template>

It would be helpful to output the current mode.

Stefan

Current Thread