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

Re: Recursion performance (fibonacci numbers)

Subject: Re: Recursion performance (fibonacci numbers)
From: andrew welch <andrew.j.welch@xxxxxxxxx>
Date: Tue, 17 Jan 2006 09:54:07 +0000
java recursion
On 1/17/06, andrew welch <andrew.j.welch@xxxxxxxxx> wrote:
> > Or if you want timing information:
> >
> > java net.sf.saxon.Transform -t fibonacci2.xsl fibonacci2.xsl n=30
> >
> > though you need to be aware that for anything less than a second or two,
the
> > timings will be meaningless as they are dominated by Java warm-up time.
>
> If you use easytransformer (a graphical front end for Saxon) then the
> timings below 2 seconds should be more accurate than from the command
> line as it doesn't include java start up or stylesheet parsing - it
> starts only when the transformation begins (when the XML is parsed).
>
> http://sourceforge.net/projects/easytransformer
>
> (easytransformer uses SaxonB 8.6.1, so an XSLT 1.0 stylesheet would be
> running with an 2.0 processor, if that's significant.  In this case
> you would ideally give the root matching template a name and then use
> the "standalone" tab, so you dont have to apply the stylesheet to
> itself)

I'm not sure why I thought everyone was using XSLT 1.0......

To use a stylesheet like this (one where no input XML is required) its
best to give the the root matching template a name, eg:

<xsl:template match="/" name="main">

then it can be run either in the traditional way by applying it to
itself (or any other XML doc) or by specifying the initial template
with the -it switch:

java net.sf.saxon.Transform -t -it main fibonacci2.xsl n=30

The "standalone" tab in easytransformer can auto-detect the available
named templates and parameters.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.