[TYPO3-core] doctye and xhtmlDoctype docs

Martin Kutschker Martin.Kutschker at blackbox.net
Fri Dec 9 23:56:47 CET 2005


Hi!

I've committed the xhtmlDoctype-patch and the updated docs for both setigns follow below.

Masi

doctype:
--------

Data type:

string

Description:

If set, then a document type declaration (and a xml prologue) will be generated. The value can either be a complete doctype or one of the following keywords:

"xhtml_trans" for XHTML 1.0 Transitional doctype.
"xhtml_frames" for XHTML 1.0 Frameset doctype.
"xhtml_strict" for XHTML 1.0 Strict doctype.
"xhtml_basic" for XHTML basic doctype.
"xhtml_11" for XHTML 1.1 doctype.
"xhtml_2" for XHTML 2 doctype.
"none" for NO doctype at all.

Note that the keywords also change the way TYPO3 generates some of the XHTML tags to ensure valid XML. You must set xhtmlDoctype if you set doctype to a string.

See "config.htmlTag_setParams" and "config.htmlTag_langKey" for more details on the effect on the html tag.

Default:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

#######

xhtmlDoctype
------------

Data type:

string

Description:

Sets the document type for the XHTML version of the generated page.

If doctype is set to a string then xhtmlDoctype must be set to one of those keywords:

"xhtml_trans" for XHTML 1.0 Transitional doctype.
"xhtml_frames" for XHTML 1.0 Frameset doctype.
"xhtml_strict" for XHTML 1.0 Strict doctype.
"xhtml_basic" for XHTML basic doctype.
"xhtml_11" for XHTML 1.1 doctype.
"xhtml_2" for XHTML 2 doctype.

E.g. to use MathML 2.0 in an XHTML 1.1 document 

config.doctype = (
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
"http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"
>
)
config.xhtmlDoctype = xhtlm_11

Default:

same as doctype if set to a keyword




More information about the TYPO3-team-core mailing list