RE: Using the not function

Subject: RE: Using the not function
From: "Harbarth, Juliane" <Juliane.Harbarth@xxxxxxxxxxxxxx>
Date: Mon, 17 Jan 2000 12:01:06 +0100

> > > <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.

The result of the name() function is the expanded name which consists
of a local-part and the namespace URI. Thus two XML documents that are
equivalent except for their choice of namespace prefixes will give 
same answers if the prefixes point to the same namespace URI.

Juliane.


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


Current Thread