xsl-list
[Top] [All Lists]

Re: [xsl] name of the current mode

2009-11-14 14:47:10

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>