You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2006/05/28 18:42:59 UTC

svn commit: r409964 - in /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher: internal.xmap resources/stylesheets/helper/strip-dispatcher-remains.xsl

Author: thorsten
Date: Sun May 28 09:42:59 2006
New Revision: 409964

URL: http://svn.apache.org/viewvc?rev=409964&view=rev
Log:
FOR-828 Internet Explorer fails to read the UTF-8 character encoding in the XML statement, defaults to western encoding. Formating the final xhtml output the way IE really likes it. Other browser does not need this changes but they do not hurt. This resolves the issue. Please test.

Modified:
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap
    forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/helper/strip-dispatcher-remains.xsl

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap?rev=409964&r1=409963&r2=409964&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/internal.xmap Sun May 28 09:42:59 2006
@@ -72,7 +72,7 @@
           </doctype-system>
         <encoding>UTF-8</encoding>
         <indent>yes</indent>
-        <omit-xml-declaration>no</omit-xml-declaration>
+        <omit-xml-declaration>yes</omit-xml-declaration>
       </map:serializer>
       <map:serializer mime-type="image/png" name="svg2png" 
         src="org.apache.cocoon.serialization.SVGSerializer">
@@ -153,6 +153,9 @@
           <map:parameter name="hooksTransformer" value="lm://hooks-to-html.xsl" 
             />
         </map:transform>
+        <map:transform 
+          src="lm://transform.xml.xml-namespace-stripped" 
+          />
         <map:transform 
           src="resources/stylesheets/helper/strip-dispatcher-remains.xsl" 
           />

Modified: forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/helper/strip-dispatcher-remains.xsl
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/helper/strip-dispatcher-remains.xsl?rev=409964&r1=409963&r2=409964&view=diff
==============================================================================
--- forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/helper/strip-dispatcher-remains.xsl (original)
+++ forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.dispatcher/resources/stylesheets/helper/strip-dispatcher-remains.xsl Sun May 28 09:42:59 2006
@@ -18,12 +18,10 @@
 <xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-  <xsl:import href="lm://transform.xml.xml-namespace-stripped"/>
-
   <xsl:template match="/">
-    <html>
-      <xsl:apply-templates select="html/head"/>
-      <xsl:apply-templates select="html/body"/>
+    <html xmlns="http://www.w3.org/1999/xhtml">
+      <xsl:copy-of select="html/head"/>
+      <xsl:copy-of select="html/body"/>
     </html>
   </xsl:template>