ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xsl-list
xsl-list
Re: [xsl] Measuring the complexity of XSLT stylesheets
by Lars Marius Garshol other posts by this author
Apr 17 2005 10:49AM messages near this date
Re: [xsl] Measuring the complexity of XSLT stylesheets | Re: [xsl] Measuring the complexity of XSLT stylesheets
& XSLT 
* Sebastien Arbogast
|
| Maybe you could try to bring the problem back to a question of
| algorithm complexity.

Well, algorithm complexity is a measure of how quickly the time
increases with the size of the input. That's not my concern, however.
I'm interested in the complexity of the stylesheet as perceived by a
human being. So a better measure for my purposes would be something
like McCabe cyclomatic complexity, but I'm clueless about how to
compute that for an XSLT stylesheet.

| Because a XSLT stylesheet doesn't have any complexity in itself :
| it's not code in itself because it's not compiled or
| interpreted. 

I'd say an XSLT stylesheet *is* code, because it is an executable
description of a process. It's pretty declarative, but still code,
IMHO.

| The real program, where complexity really is (in terms of code
| performance if that's what you mean), it's the XSLT processor. So
| the first thing you have to do to evaluate complexity is to choose
| one implementation of an XSLT processor (MSXML, Saxon, Xalan,
| etc.).

If my goal was to find out how long it would take to run the
stylesheet this would be of interest, but I'm more concerned with how
difficult the stylesheet is to write and maintain. So I'm looking for
complexity in a different sense.

-- 
Lars Marius Garshol, Ontopian         <URL: http://www.ontopia.net > 
GSM: +47 98 21 55 50                  <URL: http://www.garshol.priv.no > 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@[...].com> 
--~--
Thread:
Lars Marius Garshol
Anthony B. Coates
James Fuller
Dimitre Novatchev
Lars Marius Garshol
Dimitre Novatchev
Adam Turoff
M. David Peterson
Sebastien Arbogast
Lars Marius Garshol
Jirka Kosek

Lars Marius Garshol
James Fuller
Lars Marius Garshol
Colin Paul Adams
M. David Peterson
M. David Peterson
Jun Zhang
M. David Peterson
Francesco Barresi
Ben Pickering
Lars Marius Garshol
M. David Peterson
Colin Paul Adams

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved