one approach that worked for me was to rewrite/subclass the
org.apache.cocoon.components.xslt.XSLTransformerImpl to not use the
mru-store, or even better conditionally use the store, say by checking a
"nocache" parameter (what i did).

mvh karl řie


-----Original Message-----
From: Lock, Fred [mailto:[EMAIL PROTECTED]]
Sent: 11. desember 2001 00:34
To: '[EMAIL PROTECTED]'
Subject: Using document() in a stylesheet


Hi,

I want to do this in a stylesheet:

<xsl:variable doc="some-doc"
select="document('http://some-server/some-doc.xml')"/>

The first time the stylesheet is run, the URL in the document() function is
accessed. After that, it appears to be cached, and any changes to
"some-doc.xml" are not reflected in the output of the document function.

Is there any way to turn off this caching so that everytime the stylesheet
is run, the URL is accessed, and changes to "some-doc.xml" are seen?

Thanks,
Fred

---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to