Re: [xslt] libxslt: xsl:include/import cache?

On Wed, Dec 05, 2001 at 04:24:18PM +0000, Matt Sergeant wrote:
> On Tue, 4 Dec 2001, Elizabeth Mattijsen wrote:
> > I've been looking for ways to reduce the memory usage of a web-server that
> > will have a _lot_ of stylesheets, many of which will be referring to the
> > same "subroutine" templates by using <xsl:include>.
> [snip]
> I've been thinking about this some, and I think it might be quite a useful
> pattern for many people. So how about having a "document" callback, which
> would be mutually exclusive with the current "open/read/close" callbacks?
> It would just return a xmlDocPtr given a URI following a successful match.

  So you grow up a pool of in-memory trees. How do you know when to free
one of them ? What's happen if you modify the tree you got as a result of
the lookup ? Reminder, libxslt will modify both the stylesheet document and
the instances of the document transformed, and yes it's a speed optimization.

  Sounds application specific, IMHO.


Daniel Veillard      | Red Hat Network  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]