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

RE: Re: Re: xsl:for-each evaluator?

Subject: RE: Re: Re: xsl:for-each evaluator?
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 11 Jun 2003 23:06:11 +0100
RE:  Re: Re: xsl:for-each evaluator?
> 
> One *cannot know* if a program will terminate -- unless this 
> property has a strict proof.

That's true in general. But there is a large class of stylesheets for
which you can prove termination: anything that only selects downwards
will finish in finite time if given a finite source document.

It's not clear what the OP was asking for, but I don't think he wanted
static analysis, just some kind of instrumentation.

There's tracing in Saxon, including a tool that gives you a trace with
timing information, and a stylesheet for analyzing the trace output.
Unfortunately the timing information you can get from Java is very
coarse-grained, so it's of limited use.

I find the best approaches to timing analysis are

(a) measure performance with different sized source documents to see how
it scales.

(b) remove things one by one from the stylesheet until you find the
thing that's causing it to run slowly.

Michael Kay
 


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


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.