You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ovidiu Predescu <ov...@cup.hp.com> on 2001/06/05 20:51:22 UTC

Re: xsl include and performance

On Tue, 05 Jun 2001 20:22:31 +0200, Oskar Werewka <ow...@poczta.onet.pl> wrote:

> Does the use of xsl include affects much performance?
> If it is used once COCOON will cache somehow the
> combined style sheet or will read the source files each time?

The XSLT processor creates a Templates instance for the whole,
combined stylesheet, including all of the xsl:included documents,
e.g. the transitive closure. That's why the XSLT specification doesn't
allow for something like:

<xsl:include href="$param"/>

Cocoon caches the resultant Templates object; however it's unclear to
me right now if the caching mechanism is able to detect modifications
of the included documents, and correctly regenerate the Templates
object.

Regards,
-- 
Ovidiu Predescu <ov...@cup.hp.com>
http://orion.nsr.hp.com/ (inside HP's firewall only)
http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs, other stuff)

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>