cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Reinhard Haller" <>
Subject short time caching
Date Wed, 08 Jun 2005 14:00:14 GMT

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?

Reinhard Haller

Calls from Cinclude:

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

<!-- description and date completion by reading the values from the
html pages -->

  <map:match pattern="**/*.desc">
    <map:generate src="cocoon:/{1}/{2}.xhtml" />
    <map:transform src="{1}/html2desc1.xslt"/>
    <map:serialize type="xml"/>

  <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:transform src="parse2date.xslt" />
    <map:serialize type="xml"/>

<!-- parse date values -->

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message