.\" This man page is automatically generated using .\" kayadoc2man from the Kaya development tools and the -xmldocs compile .\" option. Editing it directly is not encouraged. .\" It is under the same license as the source .k file that it was .\" generated from. .TH "HTMLDocument.Doctype" "3kaya" "August 2014" "Kaya" "Kaya module reference" .SH "NAME" HTMLDocument::Doctype \- The document type declaration. .SH "SYNOPSIS" .B HTMLDocument::Doctype< \fI\fP .B > .IP "" -2 = .BI "HTML4Strict(" "" ")" .IP "" -2 | .BI "XHTML1Strict(" "" ")" .IP "" -2 | .BI "TagSoup(" "" ")" .SH "DESCRIPTION" .PP The document type declaration for the current document. You can either use HTML 4.01 or XHTML 1.0 Strict doctypes (HTML is generally recommended due to the current lack of browser support for XHTML, but you may need XHTML output if you intend to further process the document with other XML tools). This changes the \fB \fP declaration at the top of the document, and has other minor effects on code output. .PP The Transitional doctypes are not supported in Kaya - these doctypes are intended only for transitioning legacy documents, and Kaya is sufficiently new not to have any such legacy documents existing. .PP The \fBTagSoup \fP 'Doctype' cannot be used for output, but may be useful for attempting to get some form of structure out of poor quality markup entered by users and processed by .B "HTMLDocument.readFromString"(3kaya) .SH "AUTHORS" Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/ .SH LICENSE The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation. .SH "RELATED" .PD 0 .PP .B "HTMLDocument.HTMLDocument"(3kaya) .PP .B "HTMLDocument.new"(3kaya) .PP .B "HTMLDocument.readFromString"(3kaya) .PP .UR "http://www.w3.org/QA/2002/04/valid-dtd-list.html" W3C list of Doctypes .UE .PD 0.4v