[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

performance of copying all source to result

Subject: performance of copying all source to result
From: Evyatar_Kafkafi <evyatar@xxxxxxxxx>
Date: Thu, 21 Dec 2000 11:24:20 +0200
xsl copy all
I use an XSL stylesheet to copy (almost) all the source document to the
result, doing some small modifications on a small portion of the elements.
The stylesheet I use is similar to the one posted in
http://www.dpawson.co.uk/xsl/N1930.html#N15209 (It is added in the end of
this message). Basically, it goes over all nodes.
My source documents are relatively small (1 KB - 4 KB).

The question is - how long will it take (at run-time) to do this

My measurements show it will be more then 1.6 seconds (1600 milliseconds).

I compared some combinations of the following XSLT processors: Xalan2,
Xalan1.2, Saxon 6.0.2, XT and the following parsers: Xerces, XP, Sun,
Aelfred. I run several times (the first time always takes more, about 4
seconds). I use the compiled stylesheet.

The results were all between 1.6 seconds and 2.1 seconds.

But I would like to get a result of about 0.5 seconds for a transformation.
Therefore I suspect it is the stylesheet that should be improved, not the
XSLT processor.

Any suggestions?


The stylesheet:

    version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes">

<xsl:template match="/">

<xsl:template match=" a | applet | b | big | body | br | caption | 
    cite | code | col | colgroup | dd | div | dl | dt | em | font | 
    form | frame | frameset | head | h1 | h2 | h3 | h4 | h5 | h6 | hr | 
    html | i | iframe | img | link | li | map | meta | noframes | ol | 
    p | param | pre | s | script | small | span | strong | style | 
    sub | sup | td | th | title | tr | tt | ul | var | table ">
    <xsl:copy-of select="@*"/>

<!-- ADD YOUR template here -->


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.