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

Re: Measuring the complexity of XSLT stylesheets

Subject: Re: Measuring the complexity of XSLT stylesheets
From: Lars Marius Garshol <larsga@xxxxxxxxxxxxxxx>
Date: Sun, 17 Apr 2005 22:59:22 +0200
garshol
* Jirka Kosek
| 
| 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".

I think this is a valid point, but probably not sufficient in itself.
(My three example stylesheets all come out with the rating zero here,
despite having very different complexity. That probably only goes to
show I should have more complex examples.) I'd think that you could
usefully augment the syntax tree node count with weighting of axes.

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

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.