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

Re: finding the first element of a specific type

Subject: Re: finding the first element of a specific type
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Tue, 27 May 2003 01:56:59 +0200
Re:  finding the first element of a specific type
Jon Steeves wrote:
Is there a difference between them -- for example, does one of them take a
couple more processing steps to understand it?

It depends how well the processor optimizes. An XPath starting with "//" can theoretically search the whole document, which in your case is most likely a waste. Whether the processor stops at the first matching element is anyones guess. However, it is likely that the expression is only evaluated once. Using the preceding axis will restrict the searched portion of the document, by definition. However, if the expression is evaluated often enough there may be no advantage over your solution, even if the processor optimizes it the obvious way. It all depends on the structure of your XML.

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.