SAXONICA

Saxon Documentation
Full Contents
About Saxon
Changes in this Release
Conditions of Use
Using XSLT 2.0
Using XQuery
Handling Source Documents
XML Schema Processing
XPath API for Java
Saxon on .NET
Extensibility
Saxon Extensions
| Introduction
| EXSLT Extensions
| Extension attributes (XSLT only)
» | Additional serialization parameters
| Extension functions
| Extension instructions
Sample Saxon Applications
The Saxon SQL Extension
XSLT Elements
XPath 2.0 Expression Syntax
Function Library
Standards Conformance

# 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.

- The method attribute

- The saxon:indent-spaces attribute

- The saxon:character-representation attribute

- The saxon:next-in-chain attribute

- The saxon:require-well-formed attribute

- The saxon:supply-source-locator attribute

- User defined serialization attributes

Next