[XSL-LIST Mailing List Archive Home]
RE: Using the not function
> > > <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.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list