cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Meyer (JIRA)" <j...@apache.org>
Subject [jira] Commented: (COCOON-1839) exception2html.xslt <script /> causes IE display problem
Date Mon, 24 Apr 2006 12:37:07 GMT
    [ http://issues.apache.org/jira/browse/COCOON-1839?page=comments#action_12376019 ] 

Eric Meyer commented on COCOON-1839:
------------------------------------

This problem goes away when I use the right serializer (or at least what I think is the right
one - see below)

      <map:serializer name="oacs-xhtml11"
        src="org.apache.cocoon.serialization.HTMLSerializer"
        logger="sitemap.serializer.xhtml"
        mime-type="text/html; charset=utf-8" pool-grow="4"
        pool-max="200" pool-min="4">
        <doctype-public>-//W3C//DTD XHTML 1.1//EN</doctype-public>
        <doctype-system>
          http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd
        </doctype-system>
        <encoding>UTF-8</encoding>
        <omit-xml-declaration>yes</omit-xml-declaration>
      </map:serializer>

Note that it is confusing that there are so many different html/xhtml serialization options,
some named the same but in different packages with different behaviors.

org.apache.cocoon.components.serializers.HTMLSerialzer
org.apache.cocoon.serialization.HTMLSerializer
org.apache.cocoon.components.serializers.XHTMLSerialzer
org.apache.cocoon..components.serializers.XMLSerializer
org.apache.cocoon..components.sax.XMLSerializer
org.apache.cocoon.serialization.XMLSerializer

For example, I tried the org.apache.cocoon.components.serializers.XHTMLSerialzer, but that
escapes quotes inside attributes and script elements - breaking the javascript in IE.

Regards,
Eric Meyer

> exception2html.xslt <script /> causes IE display problem
> --------------------------------------------------------
>
>          Key: COCOON-1839
>          URL: http://issues.apache.org/jira/browse/COCOON-1839
>      Project: Cocoon
>         Type: Bug

>   Components: * Cocoon Core
>     Versions: 2.1.9
>     Reporter: Eric Meyer
>     Priority: Minor
>  Attachments: exception2xhtml-patch.txt
>
> The IE rendering engine will show a blank page if the document contains a minimal (self-closing)
<script /> tag.
> By putting in an nbsp (&#160;) or a new line, the XSLT produces <script> </script>,
which then allows IE to properly display the page.
> The attached page (license granted to asf) adds a non-breaking space to keep the tag
from being collapsed.
>         <script src="{$contextPath}/scripts/main.js" type="text/javascript">
>         	&#160;
>         </script>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message