This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » General » XHTML header

XHTML header

XHTML header

Tuesday 04 November 2003 6:28:22 pm - 2 replies


I am unsure if this is related in any way to ez, but I would have though that someon would have come accross this.

In my pagelayout template I start of the page with:

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">

This was working fine in ez, but then for some reason IE 5.5 & 6.0 now both display the results as if it where an XML page. I cannot think for the life of me what might have changed.

Tuesday 04 November 2003 7:25:27 pm

There is a known problem with IE when using the XML declaration and a doctype, which is quite frustrating. Try eliminating the XML declaration and moving the character encoding to a meta tag. That should fix it.

There is a pretty good discussion of this available at A List Apart: The discussion relates to the article "Fix Your Site With the Right DOCTYPE!" (


Wednesday 05 November 2003 3:23:04 pm

Thanks for the pointer Alex.

I turns out it was after adding some code before the HTML was output. eZ was producing whitespace and IE didn't like the fact that the <?xml version="1.0" encoding="utf-8"?> was not the first line of the output.

Fixed the whitespace and IE is now happy again!


You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from