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

RE: Max size?

Subject: RE: Max size?
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Thu, 9 Jan 2003 16:32:15 -0000
simple xml max size
> > The interesting challenge is to work out when you can 
> discard parts of 
> > the tree that won't be needed again. I think this could be 
> done quite 
> > easily for a small class of very simple stylesheets, but 
> the general 
> > problem is quite hard.
> 
> I think it should be possible to assert by static analysis 
> whether a certain template only accesses descendants of the 
> context node. If this can be asserted for all templates in 
> the style sheet, and if you can arrange the processing within 
> a template so that nodes are only accessed once locally, you 
> can discard nodes processed by directly called templates from 
> memory. Making such assertions shouldn't be that hard if the 
> XPath expressions within the templates use only nodes form 
> the descendant-or-self axis. 

That's precisely what I meant by "a small class of very simple
stylesheets". I came to the conclusion that there are so few real
stylesheets like this that it's not worth the trouble.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


 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.