Subject: RE: [xsl] XPath help From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Fri, 7 Sep 2001 16:54:59 +0100 |
> Any ideas on which answer is correct? > > <xsl:for-each select="*[not(name()='a' or name()='b')]"> > > [not(self::a or self::b)] > > <xsl:for-each select="*[not(local-name()='a' or local-name()='b')]"> The second is the only one of the three that handles namespaces correctly. But with a document that only uses <a> and <b> as unprefixed and unnamespaced element names, all three will work fine. Mike Kay XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XPath help, Jeni Tennison | Thread | Re: [xsl] XPath help, Jeffrey Langdon |
Re: [xsl] XPath help, Jeni Tennison | Date | XPath 2.0: Collection-Valued Expres, Jeni Tennison |
Month |