Re: [xslt] libxslt: xsl:include/import cache?
- From: Daniel Veillard <veillard redhat com>
- To: xslt gnome org
- Subject: Re: [xslt] libxslt: xsl:include/import cache?
- Date: Wed, 5 Dec 2001 11:41:03 -0500
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
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]