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

RE: Computational complexity of XSL processing

Subject: RE: Computational complexity of XSL processing
From: Michael.Kay@xxxxxxx
Date: Mon, 22 Feb 1999 17:18:58 -0000
RE: Computational complexity of XSL processing
> > The question is about computational complexity of XSL processing. 
>  
> Even though it is possible to implement XSL with such expressive 
> match patterns, it is harder to optimize them such that performance
> doesn't degrade rapidly as a function of match pattern complexity.
> It's certainly possible, but not easy.

I don't think it's especially difficult. Given the total set of templates in
a stylesheet, I think it's relatively easy to build a list of possible
templates for each element type, in order of selectivity, and because of
your other point below, I think this list will usually be very short.

One architectural point though: this optimisation could be more effective if
the XSL stylesheet was bound to a DTD. What I'd really like to do is take a
stylesheet and a DTD and generate executable code that can process any
document conforming to that DTD...

> 
> From my experience, people seldom really use extremely complex 
> match patterns anyway. Most people seem to treat match patterns
> and select patterns much like a case statement nested inside an
> if block.
> 

Agreed. I've only found one case where I really needed anything more
elaborate than "element-name", "*", "element-name/*", and
"parent-element/child-element". I usually prefer to handle anything else by
conditional processing within the template. If there was an inheritance
mechanism that allowed more than one rule to be applied, it might be
different.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.