|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|

Cart








