You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Scott N. Smith" <Sc...@HOTELINFOSYS.COM> on 2001/04/26 23:01:38 UTC

Caching anomaly in multistage XSL

I've noticed that Cocoon is inconsistent in when it refreshes its cache.
Or, perhaps I am overlooking something.

I've attached three files that show a simple anomaly:

*	foo.xml		a tiny source XML file
*	addjava.xsl		a tiny transforming file that implements a
tiny bit of Java programming.
*	tohtml.xsl		a tiny transforming file that formats the
result in HTML.

In other words, Cocoon runs through them like this:

	foo.xml		-->	addjava.xsl	-->	tohtml.xsl

I got this running under Apache 1.3/Tomcat 3.2.1/Windows 2000/Cocoon 1.8.2.

Here's the anomaly:

1.  If I change foo.xml and refresh my IE 5.5. browser, the updated result
is shown.
2.  If I change tohtml.xsl and refresh my browser, the updated result is
shown.
3.  If I change addjava.xsl and refresh my browser, the result IS NOT
UPDATED!!  It behaves as though Cocoon is using the unrefreshed caching of
addjava.xsl.

Why does changing tohtml.xsl work, but changing addjava.xsl not?

Interestingly, if I then change foo.xml, then addjava.xsl is successfully
refreshed.

Here's my caching settings:

--------------------------------------

# the default cache
cache = org.apache.cocoon.cache.CocoonCache

#uncomment this to disable ALL page caching
#cache = org.apache.cocoon.cache.NoCache

#Change this to false to disable all Last-Modified headers
#This will also disable client-side and proxy caching, but not Cocoon
#internal caching.
#Content that is not cached by Cocoon will not have a Last-Modified header.
lastmodified = false

--------------------------------------

I've attached the three files.  Can anyone tell me what I need to do?

Thanks,

Scott <<addjava.xsl>>  <<foo.xml>>  <<tohtml.xsl>> 


begin 600 addjava.xsl
M/'AS;#IS='EL97-H965T('9E<G-I;VX](C$N,"(*("`@('AM;&YS.GAS;#TB
M:'1T<#HO+W=W=RYW,RYO<F<O,3DY.2]84TPO5')A;G-F;W)M(@H@("`@('AM
M;&YS.GAS<#TB:'1T<#HO+W=W=RYA<&%C:&4N;W)G+S$Y.3DO6%-0+T-O<F4B
M/@H*("`@(#QX<VPZ=&5M<&QA=&4@;6%T8V@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
M='EP93TB=&5X="]X<VPB/SX*"CQT;W`@<VAO=T%N;VUA;'D](F9A;'-E(CX*
M("`\(2TM(&-O;G-I<W1S(&]F(&$@8V]U;G0@+2T^"B`@/&-O=6YT/C,P/"]C
-;W5N=#X*/"]T;W`^"@==
`
end

begin 600 tohtml.xsl
M/#]X;6P@=F5R<VEO;CTB,2XP(C\^"@H\>'-L.G-T>6QE<VAE970@=F5R<VEO
M;CTB,2XP(B!X;6QN<SIX<VP](FAT='`Z+R]W=W<N=S,N;W)G+S$Y.3DO6%-,
M+U1R86YS9F]R;2(^"@H@("`@/'AS;#IT96UP;&%T92!M871C:#TB=&]P(CX*
M("`@("`@("`\>'-L.G!R;V-E<W-I;F<M:6YS=')U8W1I;VX@;F%M93TB8V]C
M;V]N+69O<FUA="(^='EP93TB=&5X="]H=&UL(CPO>'-L.G!R;V-E<W-I;F<M
M:6YS=')U8W1I;VX^"B`@("`@("`@/&AT;6P^"B`@("`@("`@/&AE860^"B`@
M("`@("`@("`@(#QT:71L93Y38V]T="=S(%1E<W0\+W1I=&QE/@H@("`@("`@
M(#PO:&5A9#X*("`@("`@("`\8F]D>3X*("`@("`@("`@("`@/'`^0F5F;W)E
M('1E;7!L871E.B`\+W`^"B`@("`@("`@("`@(#QX<VPZ87!P;'DM=&5M<&QA
M=&5S+SX*("`@("`@("`@("`@/'`^069T97(@=&5M<&QA=&4\+W`^"B`@("`@
M("`@/"]B;V1Y/@H@("`@("`@(#PO:'1M;#X*("`@(#PO>'-L.G1E;7!L871E
M/@H*("`@(#QX<VPZ=&5M<&QA=&4@;6%T8V@](F-O=6YT(CX*("`@("`@("`\
M<#Y4:&4@86YS=V5R(&ES(#QX<VPZ=F%L=64M;V8@<V5L96-T/2)T97AT*"DB
M+SX\+W`^"B`@("`\+WAS;#IT96UP;&%T93X*"CPO>'-L.G-T>6QE<VAE970^
!"@==
`
end

---------------------------------------------------------------------
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>