Subject: Re: [xsl] Measuring the complexity of XSLT stylesheets From: Ben Pickering <benpickering@xxxxxxxxx> Date: Sun, 17 Apr 2005 19:18:49 +0100 |
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... Jaxen ( http://jaxen.org/ ) uses an XPath parser called 'SAXPath' that might be useful for creating a program to calculate the size of the tree (although I've never used it :) Good luck. Ben. On 17/04/05, Francesco Barresi <kywocs@xxxxxxxxx> wrote: > > Well, the length of the XPATH expression in characters gives an idea, > > I think. > I'm far from know enough about the subject to give some advice, but > the length of an XPATH expression doesn't necessarily give the > complexity of the expression, for example this two expressions does > the same thing but the length is very different: > > //somenode[@someattribute] > /rootnode/descendant-or-self::somenode[attribute::someattribute] > > Just a thought. > > Bye. > > -- > www.GetFirefox.com !! > http:kywocs.blogspot.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Measuring the complexity , Colin Paul Adams | Thread | Re: [xsl] Measuring the complexity , Lars Marius Garshol |
Re: [xsl] Measuring the complexity , Colin Paul Adams | Date | Re: [xsl] Measuring the complexity , Lars Marius Garshol |
Month |