[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Why are there no XSLT processors implemented in XSLT?


Subject: Re: [xsl] Why are there no XSLT processors implemented in XSLT?
From: "Tony Graham" <tgraham@xxxxxxxxxx>
Date: Wed, 2 May 2012 09:40:44 +0100 (IST)

On Tue, May 1, 2012 5:05 pm, Hermann Stamm-Wilbrandt wrote:
...
> naxos sample execution:
> $ time java com.icl.saxon.StyleSheet user.xml ../naxos.xsl
...
> real	0m6.360s
> user	0m11.512s
> sys	0m0.157s

You will get less effect from the JVM startup time if you use '-9' to run
the transform multiple times:

$ time saxon-xslt user.xml ../naxos.xsl
...
real	0m13.283s
user	0m15.930s
sys	0m0.520s
$ time saxon-xslt -9 user.xml ../naxos.xsl
...
real	0m40.619s
user	0m44.580s
sys	0m0.590s
$

And Naxos is processor independent:

$ time xsltproc ../naxos.xsl user.xml
<html><head><title>Spam for Schmidt</title></head><body>
  <p>Dear Frau Schmidt,</p>
  <p>We would like to invite you,
    as a resident of Germany,
    to review our new software package.</p>
  <p>Thank you.</p>
  <p>Yours sincerely,</p>
</body></html>
real	0m7.639s
user	0m7.230s
sys	0m0.160s


Regards,


Tony Graham                                   tgraham@xxxxxxxxxx
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL-FO and XSLT consulting, training and programming


Current Thread
Keywords