This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl optimization
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] xsl optimization
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Mon, 21 May 2001 11:09:11 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Is there any possibility for optimizing an XSL ?
Yes, of course there is. But it's too big a question to answer in five
minutes!
Of course, different XSLT processors do different optimization on your
stylesheet, so the things that work well with one may not work well with
another.
Some general rules, though:
- assume the processor doesn't do any optimization unless you have evidence
to the contrary.
- assume that the transformation time depends on the number of "visits" to
nodes in the source document. For example, writing "//item" will visit every
element node in the document once, and writing "preceding-sibling::item"
will visit every preceding sibling item once.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list