Saxonica.com

Additional serialization parameters

Saxon provides a number of additional serialization parameters: 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 Saxon-supplied serialization parameters are described on the following pages.

Next