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 Jirka Kosek other posts by this author
Apr 17 2005 1:45PM messages near this date
Re: [xsl] Measuring the complexity of XSLT stylesheets | Re: [xsl] Measuring the complexity of XSLT stylesheets
& XSLT Lars Marius Garshol wrote:

>  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

I think that many people think about XML as about hierarchical way of 
describing/storing data. XSLT by default traverses XML data from the 
root to the leaves using templates. If you need to access other axes 
than child and descendant in your stylesheet, then there is usualy some 
complexity behind your data from human perspecitive of view. So counting 
number of XPath expressions that use different axes than child and 
descendant might give you some metric not completely unrelated to 
complexity of input data and their processing. Or you can assign 
different weight to differents axes to make it more "scientific".

Each expression measured should be weighted by number of times it was 
really evaluated what is really hard to do in a general way but you can 
measure it quite easily using some XSLT profiler on real data.

				Jirka

-- 
------------------------------------------------------------------
   Jirka Kosek     e-mail: jirka@[...].cz     http://www.kosek.cz
------------------------------------------------------------------
   Profesionální ¹kolení a poradenství v oblasti technologií XML.
      Podívejte se na ná¹ novì spu¹tìný web http://DocBook.cz
        Podrobný pøehled ¹kolení http://xmlguru.cz/skoleni/
------------------------------------------------------------------
Attachments:
unknown1

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