xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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
Keywords
xml
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor