XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition (678 page)

BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition
13.43Mb size Format: txt, pdf, ePub

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).

Other books

Ghost by Fred Burton
Liquid Lies by Lois Lavrisa
Everdark by Elle Jasper
The Story of Astronomy by Peter Aughton
Salvage by Jason Nahrung
Colorado 02 Sweet Dreams by Kristen Ashley
Bodies and Sole by Hilary MacLeod
In Plain Sight by Barbara Block
Captured by Erica Stevens