Additional serialization parameters

These extensions are not recognized in Saxon-HE

Saxon provides a number of additional serialization parameters, and several additional serialization methods: 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 a saxon:output 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:

Saxon interprets a zero-length value for doctype-system or doctype-public as meaning "absent". This is equivalent to omitting the value, except that in some interfaces it will override a value previously set within the query or stylesheet.

The Saxon-supplied serialization parameters are described on the following pages.