[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XPath help
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|