RE: Using the not function

Subject: RE: Using the not function
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 17 Jan 2000 10:31:35 -0000
> > <xsl:apply-templates select="[all but element3]" />
> > ...
> <xsl:apply-templates select="*[name() != 'element3']" />
Generally speaking, it's best to avoid testing the result of the name()
function, because two XML documents that are equivalent except for their
choice of namespace prefixes will give different answers. Using
"not(self::element3)" is safer.

Mike Kay

 XSL-List info and archive:

Current Thread