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
10.29Mb 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

Love Is the Higher Law by David Levithan
River of Death by Alistair MacLean
Monster High by Lisi Harrison
The Black Path by Paul Burston
Ice Cold by Andrea Maria Schenkel
Not in God's Name by Jonathan Sacks
Once in a Blue Moon by Diane Darcy
Let's Get Lost by Adi Alsaid
Gloria's Man by Karland, Marteeka
Weird Tales, Volume 51 by Ann VanderMeer