[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: Ben Pickering <benpickering@xxxxxxxxx>
Date: Sun, 17 Apr 2005 19:18:49 +0100
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...

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

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.