The saxon:output
option declaration
Saxon provides an option declaration to set serialization parameters. This takes the form shown in the following example:
declare namespace saxon="http://saxon.sf.net/"; declare option saxon:output "method=html"; declare option saxon:output "saxon:indent-spaces=1";All the standard serialization parameters described in the W3C Serialization specification are available:
-
allow-duplicate-names
-
build-tree
-
byte-order-mark
-
cdata-section-elements
-
doctype-public
-
doctype-system
-
encoding
-
escape-uri-attributes
-
html-version
-
include-content-type
-
indent
-
item-separator
-
json-node-output-method
-
media-type
-
method
-
normalization-form
-
omit-xml-declaration
-
standalone
-
suppress-indentation
-
undeclare-prefixes
-
use-character-maps
-
version
In addition some Saxon-specific serialization parameters are available: see Additional serialization parameters.