Kamal Bhatt wrote:

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)
OK, I should have paid more attention on how this is working. I understand that allo of this:
<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"/>

is writing to the source and that it adds it to the source source, the removes the source tags. My bad. That still begs the question why we are not adding the DTD. Also, it occurs to me that style-cms-page might be significant here. So here it is:

 <map:resources>
   <map:resource name="style-cms-page">
     <map:transform type="i18n">
       <map:parameter name="locale" value="{request:locale}"/>
     </map:transform>
     <map:transform src="xslt/page2xhtml.xsl">
<map:parameter name="root" value="{page-envelope:context-prefix}/{page-envelope:publication-id}/{page-envelope:area}"/>
       <map:parameter name="contextprefix" value="{request:contextPath}"/>
       <map:parameter name="document-id" value=" index"/>
     </map:transform>
     <map:transform src="../../xslt/util/strip_namespaces.xsl"/>
     <map:select type="parameter">
       <map:parameter name="statusCode" value="{statusCode}"/>
       <map:when test="">
         <map:serialize/>
       </map:when>
<!-- FIXME workaround for http://issues.apache.org/bugzilla/show_bug.cgi?id=32336 -->
       <map:when test="404">
         <map:serialize status-code="404"/>
       </map:when>
       <map:otherwise>
         <map:serialize status-code="{statusCode}"/>
       </map:otherwise>
     </map:select>
   </map:resource>
 </map:resources>
The default serializer is set to html (which specifies the DTD).

Cheers.



--
Kamal Bhatt


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

Reply via email to