Subject: RE: [xsl] BAST METHOD From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx> Date: Wed, 17 Apr 2002 10:04:55 +0100 |
> Never use '//'! So the most explicit path is the best: > > /document/head/title > Yes. Or even /document[1]/head[1]/title[1]; though that's second-guessing the optimization that the processor does. Actually with Saxon, assuming there is a single <title> element in the document, //title will be a lot more expensive than /document/head/title the first time it is used, but it will be slightly cheaper on the second and subsequent occasions; but on the other hand, if you are going to use it repeatedly, it would be better to use a global variable. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] BAST METHOD, Joerg Heinicke | Thread | Re: [xsl] BAST METHOD, David Carlisle |
RE: [xsl] XSLT processor based on S, Pavitra Jain | Date | [xsl] translation string to element, Nicolas Mazziotta |
Month |