On 5/14/05, Lily Miu <[EMAIL PROTECTED]> wrote: > <?xml version="1.0" encoding="UTF-8"?> I believe is needed in order for > XHTML to be validated.
Sorry Lily, this isn't actually helping with your print stylesheet problem, but I thought I'd step in and do some CSS Myth-Busting (TM). For a start, according to Anne van Kesteren (one knowledgable dude) it's not actually an XML prolog, it's an XML declaration. More info here: http://annevankesteren.nl/archives/2004/08/xml-declaration Secondly, the XML declaration is not required for validation. It is recommended by the W3C, but is not necessary. The reason why some people recommend that you DON'T include the XML declaration is because in IE6, if anything exists in the document above the doctype declaration, be it a comment, an xml declaration, ANYTHING, IE6 goes into "quirks" mode or "old-browser-emulation" mode. This causes IE6 to imitate IE5, with the broken box model and other nasty bugs. Other people say that you SHOULD include the XML declaration for that very reason - to reduce the number of rendering engines that you're trying to accomodate. I haven't seen much discussion of that point of view lately, so perhaps people are moving away from it (IE5's market share is definitely dropping throught the floor). Hope that's helpful, K. -- Kay Smoljak http://kay.smoljak.com/ ****************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help ******************************************************
