Exactly,
so in the serializers part of the sitemap, you can remove/comment out
the doctype lines in the declaration of the html serializer, e.g.
<map:serializers default="html">
...
<map:serializer logger="sitemap.serializer.html"
mime-type="text/html" name="html" pool-grow="4" pool-max="32"
pool-min="4" src="org.apache.cocoon.serialization.HTMLSerializer">
<!--
<doctype-public>-//W3C//DTD HTML 4.01
Transitional//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/html4/loose.dtd</doctype-system>
-->
</map:serializer>
...
</map:serializers>
Then you won't get the DOCTYPE at the head of the HTML
(strictly speaking for map:matches declared in the sitemap that use the
HTML serializer, which is the default as specified above).
BTW the presence of and content of the DOCTYPE is used by (some)
browsers to indicate whether to interpret things like CSS strictly or
loosely
If you've got 'sensitive' bits of CSS - esp. positional CSS - then
things can appear *very* differently dependent on the presence and
content of the DOCTYPE declaration.
Hope this helps,
Christopher
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: 10 March 2004 12:22
> To: [EMAIL PROTECTED]
> Subject: Re: Weird display problems - 2.1.3 to 2.1.4
>
>
>
> Hi,
>
> scanning the 2.1.4 sources i found this. Maybe it is helpful to you.
>
> <map:serializer name="html" mime-type="text/html"
> src="org.apache.cocoon.serialization.HTMLSerializer">
> <doctype-public>-//W3C//DTD HTML 4.0 Transitional//EN
> </doctype-public>
> <doctype-system>http://www.w3.org/TR/REC-html40/loose.dtd
> </doctype-system>
> <omit-xml-declaration>true</omit-xml-declaration>
> <encoding>UTF-8</encoding>
> <indent>1</indent>
> </map:serializer>
>
> regards,
> tom
>
>
>
>
>
> "Derek Hohls"
>
> <[EMAIL PROTECTED] An:
> <[EMAIL PROTECTED]>
> a> Kopie:
> (Blindkopie: Thomas Zirnsack/DS/GFK/DE)
> Thema: Re:
> Weird display problems - 2.1.3 to 2.1.4
> 10.03.2004 12:28
>
> Bitte antworten
>
> an users
>
>
>
>
>
>
>
>
>
> OK - looking at the HTML, it appears that the
> Cocoon 2.1.4 serializer is now adding the
> following line to the top of the file:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
> Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
>
> My options are therefore to:
> (a) go through and fix up all my existing sites to
> accomodate this change; OR
> (b) find a way to remove this new addition
>
> Considering my time constraints, I will prefer option (b)
> (in the short term at least, in the long term I will
> obviuously try and understand why adding in this
> DOCTYPE causes such a screwy behaviour....!)
>
> Can someone can tell me how to go about this?!
> (preferably a single fix that affects all mounted sites)
>
> Thanks!!
> Derek
>
>
> >>> [EMAIL PROTECTED] 2004/03/10 01:05:34 PM >>>
> We have recently upgraded Cocoon on our server
> (UNIX) from 2.0 to to 2.1.4. I am still running 2.1.3 on
> my local (WindowsXP) machine. Both are running
> Tomcat 4.1.2x.
>
> The "weird display" is shown in the before and after
> attachments - for some reason the text in the form boxes
> which show fine on my machine and used to show fine on the
> 2.0.x version, is now all "squashed" on the 2.1.4 version.
> (same browser). I am also having other problems with lines
> not displaying in tables and so on, which may be from the
> same cauise...
>
> AFAIK nothing else has changed in the setup - ANY ideas
> as to what could be causing this??
>
> Thnks
> Derek
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> MailScanner thanks transtec Computers for their support.
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> MailScanner thanks transtec Computers for their support.
>
>
> ---------------------------------------------------------------------
> 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]
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]