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

Re: xslt performance issue position() function used in

Subject: Re: xslt performance issue position() function used in predicate very slow
From: Frans Englich <frans.englich@xxxxxxxxx>
Date: Sat, 26 Aug 2006 15:31:20 +0000
Re:  xslt performance issue position() function used in
On Friday 25 August 2006 12:08, Michael Kay wrote:
> Firstly, the fact that ./v[$p] doesn't work, but ./v[$p + 0] does work,
> means that the value of $p is not a number. Perhaps it is a string, or
> perhaps it is a result tree fragment. Either way, you would probably get an
> immediate performance improvement by changing it to be a number, to avoid
> the conversion costs each time the value is used.
>
> Incidentally, the expression "./v" is exactly the same as "v". If your
> processor is particularly stupid, the more complex expression might take
> longer to evaluate.

When is the context item not redundant in a path expression? Some examples:

./a/b/c
a/b/c/.
a/b/./c
a/b/././c


Cheers,

		Frans

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.