xsl-list
[Top] [All Lists]

RE: Progress indicator in Xalan?

2003-02-17 02:16:52
How difficult will it be to code a progress indicator that 
would show the percentage of the process when we parse and 
transform an XML into another XML/HTML using an XSL

It's easy enough to do this for a serial process such as parsing. It's
not really possible to do it for a non-serial process such as
transformation: there is no way of predicting how much work remains to
be done. (XSLT is a Turing-complete language, therefore it's not even
possible to predict whether a transformation will ever finish).

It's possible, of course, that some heuristic might be devised that
works sufficiently often to be useful. But the transformations where you
want a progress indication are probably exactly those where the
performance is non-linear, so I think this is unlikely.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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



<Prev in Thread] Current Thread [Next in Thread>