Hi
I am trying to understand the publication-sitemap for 1.2.3.
Specifically this:
<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>
I am sorry to admit that this is the first time I had seen a match
inside of a match. I want to understand what it does in particular in
the case of live as it seems to be stripping the doctype. I am correct
in saying that this:
<map:transform type="write-source">
<map:parameter name="serializer"
value="html-no-dtd"/>
</map:transform>
is writing it to the cache directory? If so, where does it setup where
it writes to as I cannot find it. Why does it write with html-no-dtd? I
assume that it is not intended that pages are retrieved from cache
without a DTD? Has this problem been fixed in later versions? If so,
how? (We cannot upgrade at this time)
Cheers.
--
Kamal Bhatt
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]