RE: XQuery basics
> > XSLT has both include and import. Whether an implementation shares > > memory between components is up to the implementation. > > Do you know of any that share components? Is it even possible? It's possible, of course, but it's not easy, because some properties of the shared components would need to vary from one instance to another. The most obvious example is import precedence. There are two cases to consider. (a) sharing of included/imported modules between multiple includes/imports within a single stylesheet, and (b) sharing of modules across multiple stylesheets. I think if you did it at all you would want to do (b). But that's even harder, because the bindings of global variables, named templates, keys, etc etc can be different depending on which stylesheet a module is included into. It requires a thorough separation of internal data structures between the things that only depend on what's locally defined within a module, and the things that depend on who is using it. And of course the more you move to global optimization (such as inlining of function calls, something Saxon-SA already does), the harder it becomes. Michael Kay http://www.saxonica.com/
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format