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

Re: Is this node, the document root... best test?

Subject: Re: Is this node, the document root... best test?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 20 Oct 2003 21:21:24 +0100
root top
There's no point comparing the times as they test completely different
things.

not(parent::*)

tests whether the current node has a parent element, so this is true of
the document node /, the top level element and any top level comments
and processing instructions.

> ". = /"

is a wildly expensive test that tests the string value of the current
node with the string value of the entire document. This could be true on
any number of nodes, depending on the document structure.
On a document with just elements and attributes and no text, it is true
on every node for example.

David

 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.