[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Selecting other than certain children

Subject: Re: Selecting other than certain children
From: Joerg Pietschmann <j3322ptm@xxxxxxxx>
Date: Thu, 2 Jan 2003 14:02:57 +0100
free samples foo kids
On Thursday 02 January 2003 07:17, Conal Tuohy wrote:
> I don't really know if "not(self::c)" is more efficient than "name()!='c'"
> but I prefer it for some reason, maybe because there's no function call?
I don't think there is a performance difference for most XSLT processors.

However, using self:: is mnore robust when it comes to elements in a
namespace. If you write
 name()='foo:bar'
only elements with the literal name foo:bar fulfill this condition but not
baz:bar, even if the baz prefix is bound to the same namespace.
Like in
 <sample xmlns:foo="uri:sample:stuff" xmlns:baz="uri:sample:stuff">
   <foo:bar/>
   <baz:bar/>
 </sample>
the inner elements have different a name(), but they are both matched
by self::foo:bar

J.Pietschmann

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.