[TYPO3] XHTML Transitional Validation - XML prologue issue

Darko Jr. Gonzalez jkokino at gmail.com
Wed Dec 26 12:01:23 CET 2007


Hey all

In-order for a TYPO3 page to validate against XHTML Transitional 1.0, the
line: <?xml version="1.0" encoding="utf-8"?>
should appear first. W3.org validator tells me "XML Parsing Error: XML
declaration allowed only at the start of the document.".
I use config.doctypeSwitch = 1, thats for IE to work in compliant mode.
One solution I know is that I can disable xml prologue, but I am not sure
whats the correct way to add it as a first line?
I read this:
http://lists.netfielders.de/pipermail/typo3-english/2006-July/027837.html

And TSref tells me: "Note that the keywords also change the way TYPO3
generates some of the XHTML tags to ensure valid XML. If you set doctype to
a string, then you must also set config.xhtmlDoctype (see below). "

TYPO3 4.1.1 here. And I do not get the above, what I get in both Firefox and
IE7 is this:
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?xml version="1.0" encoding="utf-8"?>

I have this in TS setup:
page.config{
 doctype = xhtml_trans
 doctypeSwitch = 1
 index_enable = 1
 xhtmlDoctype = xhtml_trans
 removeDefaultJS = 1
}

Can someone advise what I am doing wrong?


Regards,
Darko


More information about the TYPO3-english mailing list