SAXONICA |
Saxon provides a number of additional serialization parameters, and one additional serialization method:
these have names
in the Saxon namespace. These can be specified as attributes on the xsl:output
and xsl:result-document
elements (XSLT-only), in the Query prolog (XQuery only),
or as extra parameters on the
Query or Transform command line. They can also be specified in the query or transformation API.
For example, to request an indentation depth of one column, specify
!{http://saxon.sf.net/}indent-spaces=1
on the command line.
In XQuery, Saxon allows both standard serialization options and Saxon-specific serialization parameters to be specified by means of an option declaration in the query prolog. For example:
declare namespace saxon="http://saxon.sf.net/";
declare option saxon:output "indent=yes";
declare option saxon:output "saxon:indent-spaces=3";
The standard serialization parameters described in The W3C Serialization specification are all available, namely:
byte-order-mark
cdata-section-elements
doctype-public
doctype-system
encoding
escape-uri-attributes
include-content-type
indent
media-type
method
normalization-form
omit-xml-declaration
standalone
undeclare-prefixes
use-character-maps (only useful in XSLT)
version
The Saxon-supplied serialization parameters are described on the following pages.