You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Reinhard Haller <re...@interactive-net.de> on 2005/06/08 16:00:14 UTC
short time caching
Hi,
I'm reading the same html page 2 times to extract
different values from the page.
It seems the converted xhtml isn't cached as expected.
Is there another way to get the **/*.xhtml cached?
Greetings
Reinhard Haller
Calls from Cinclude:
cocoon:/xx/yy/idzz.date?serv=http://www.this-page.com
cocoon:/xx/yy/idzz.desc?serv=http://www.this-page.com
---- sitemap.xmap ----
<!-- html pipeline for conversion into xhtml -->
<map:pipeline type="caching" >
<map:match pattern="**/*.xhtml">
<map:generate type="nekohtml" src="{request-param:serv}" />
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
<!-- description and date completion by reading the values from the
html pages -->
<map:pipeline>
<map:match pattern="**/*.desc">
<map:generate src="cocoon:/{1}/{2}.xhtml" />
<map:transform src="{1}/html2desc1.xslt"/>
<map:serialize type="xml"/>
</map:match>
<map:match pattern="**/*.date">
<map:aggregate element="date">
<map:part src="cocoon:/{1}/{2}.dateparse" strip-root="true"/>
<map:part src="{1}/datedefault.xml" />
</map:aggregate>
<map:transform src="parse2date.xslt" />
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
<!-- parse date values -->
<map:pipeline>
<map:match pattern="**/*.dateparse">
<map:generate src="cocoon:/{1}/{2}.xhtml" />
<map:transform src="{1}/xhtml2textdate.xslt"/>
<map:transform type="lexer" src="cocoon:/date.xlex"/>
<map:transform type="parser" src="cocoon:/date.xgrm"/>
<map:serialize type="xml"/>
</map:match>
</map:pipeline>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org