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

RE: XQuery basics

Subject: RE: XQuery basics
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 5 Jun 2008 22:13:25 +0100
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

Michael Kay

Current Thread


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.
First Name
Last Name
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.