Principal output

When a transformation is run from the command line, the destination of the principal output is given by the -o option, and defaults to the standard output stream (that is, the console). The output is always serialized; the format of the serialization is determined by xsl:output declarations within the stylesheet itself, or by options such as !indent=yes on the command line. Command line options take precedence.

When running from an application, the destination of the principal output is controlled using the API: