This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: xsl optimization


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]