Opps, that suggestion didn't work. The cache wasn't being written out as valid xhtml (used html serializer) and was causing problems with the file generator. Plus the generator and serializer add overhead that the caching is supposed to do away with, the map:read should be much faster.

Try changing
                 <map:transform type="write-source">
                  <map:parameter name="serializer" value="html-no-dtd"/>
                 </map:transform>
to
                 <map:transform type="write-source">
                  <map:parameter name="serializer" value="html"/>
                 </map:transform>

Hope this helps,
--Doug

Doug Chestnut wrote:
Hi Joe,
As Gregor said it is the serializer that adds the doc type. Which version of lenya is your pub based on? If your publication-sitemap.xmap has a matcher like the one at the bottom of my email in it, the new cache stuff might be to blame. I tried the default pub in 1.2.3 and found that the first time I request a page I get the doctype, after that there is no doctype. I would try changing
<map:read src="{global:cache-dir}/{../1}.html" mime-type="text/html"/>
to
<map:generate src="{global:cache-dir}/{../1}.html" type="file"/>
<map:serialize type="html"/>

I don't think that map:read adds a doctype. Hope this helps, let me know how it works out. :-)


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to