[xsl] Re: Easy way to identify node type?

Subject: [xsl] Re: Easy way to identify node type?
From: yguaba@xxxxxxxxxxxx
Date: Sat, 06 Dec 2003 11:37:59 -0200

Thanks for the words of caution; I shall bear that in mind from now 

Have a great weekend,


On 6 Dec 2003 at 17:53, G. Ken Holman wrote:

> At 2003-12-05 17:24 -0200, yguaba@xxxxxxxxxxxx wrote:
> >Actually, I don't want to match specific elements (I could do that
> >with <xsl:when test="local-name() = 'element_1' or local-name() =
> >'element_2 or local-name() = 'element_n''">
> That isn't namespace safe.
> >  or just simply write
> >different templates for each different element).
> That is namespace safe.
> Using the self:: access is also namespace safe and is far better than
> using the name() functions.  The name functions are appropriate for
> exposition but are not appropriate for most node testing purposes.
> I hope this helps.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread