Read XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition Online
Authors: Michael Kay
The other serialization attributes are interpreted as follows when HTML output is selected. Attributes not listed are not applicable to HTML, and are ignored.
Attribute | Interpretation |
doctype-system | If this attribute is specified, the output file will include a document type declaration immediately before the first element start tag. The name of the document type will be HTML or html . The value of the parameter will be used as the system identifier in the document type declaration. |
doctype-public | If this attribute is specified, the output file will include a document type declaration immediately before the first element start tag. The name of the document type will be HTML or html . The value of the parameter will be used as the public identifier in the document type declaration. |
encoding | This specifies the preferred character encoding for the output document. If the encoding is one that does not allow all XML characters to be represented directly, for example iso-8859-1 , then characters outside this subset will be represented where possible using either entity references or numeric character references. The processor is encouraged not to use such references for characters that are within the encoding, except in special cases such as the nonbreaking space character, which may be output either as itself (it looks just like an ordinary space) or as , a0; , or . It is an error if characters that can't be represented directly appear in contexts where character references are not recognized (for example within a script element, within a comment, or in an element or attribute name). |