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. :-)
<map:match pattern="**.html">
<map:act type="language-exists">
<map:select type="resource-exists">
<map:when test="{global:cache-dir}/{../1}.html">
<map:read src="{global:cache-dir}/{../1}.html"
mime-type="text/html"/>
</map:when>
<map:otherwise>
<map:generate
src="cocoon:/lenyabody-view/{page-envelope:publication-id}/{page-envelope:area}/{page-envelope:document-
type}{page-envelope:document-url}"/>
<map:match pattern="authoring/**.html">
<map:transform
src="cocoon://lenya-page/{page-envelope:publication-id}/{../../1}.xml?doctype={page-envelope:document
-type}"/>
</map:match>
<map:transform src="../../xslt/util/strip_namespaces.xsl"/>
<map:match pattern="live/**.html">
<map:transform
src="../../xslt/authoring/edit/addSourceTags.xsl">
<map:parameter name="source"
value="{global:cache-dir}/live/{1}.html"/>
</map:transform>
<map:transform type="write-source">
<map:parameter name="serializer" value="html-no-dtd"/>
</map:transform>
<map:transform
src="../../xslt/authoring/edit/removeSourceTags.xsl"/>
</map:match>
<map:serialize type="html"/>
</map:otherwise>
</map:select>
</map:act>
<!-- There is no version of the requested document-id for the
requested language. -->
<map:generate type="serverpages"
src="../../content/exception/missing-language.xsp"/>
<map:transform src="../../xslt/exception/missing-language.xsl"/>
<map:call resource="style-cms-page"/>
</map:match>
Gregor J. Rothfuss wrote:
Joe Grist wrote:
Quick question - my live Lenya site appears to have stopped rendering a
<!DOCTYPE.. > declaration in the generated HTML.
This is causing havoc with IE browsers.
I can't see what part of the XSLT causes this tag to be rendered. Can
anybody help me find it so I can fix my site?
it is not the xslt that does this, but the serialization step. make sure
the doctype is declared for the html case in sitemap.xmap
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]