xsl-list
[Top] [All Lists]

Re: Measuring the complexity of XSLT stylesheets

2005-04-17 11:34:45

* Ben Pickering
|
| Something maybe related to the size of the tree resulting from
| parsing the XPath expression?  The two examples given would be
| closer under this metric than the length of their string
| representations...

True. This metric is clearly better than the character count (which I
had in my original posting, anyway), since it is at least independent
of the length of the element type names and the use of whitespace. It
might not be too hard to write Python script that uses some Python or
Java XPath parser to compute this metric.

-- 
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(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--