You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by John Gentilin <jo...@eyecatching.com> on 2001/03/07 03:20:01 UTC

Top n Things not to do in a Stylesheet (Performance Related) ??

Is there a document that describes performance penalties
for using different XSL functions.

For instance in a Style sheet where the output will be HTML
and you need the transform to merge XML data into the static
data of the page. I see two ways to accomplish this.

1)  XSL Centric
  Put the Static HTML inside a single template and retrieve
   values from the XML data using // XPath Statements.
    This is assuming that the data retrieved lives at different
     Levels in the XML Data

or

2) XML Centric
   Write separate templates that walk the XML Data. and
    produce the HTML in blocks.

#2 is more in the spirit of XSLT but #1 is easier to write.


-John G