<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../make-menu.xsl" type="text/xsl"?><html>
   <head>
      <this-is section="extensions" page="output-extras" subpage=""/>
      <!--
           Generated at 2010-10-29T18:20:48.427+01:00--><title>Saxonica: XSLT and XQuery Processing: Additional serialization parameters</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: Additional serialization parameters"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>Additional serialization parameters</h1>
      <p><i>These extensions are not recognized in Saxon-HE</i></p>
      <p>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 <code>xsl:output</code>
and <code>xsl:result-document</code> 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.</p>
      <p>For example, to request an indentation depth of one column, specify
<code>!{http://saxon.sf.net/}indent-spaces=1</code> on the command line.</p>
      <p>In XQuery, Saxon allows both standard serialization options and Saxon-specific
serialization parameters to be specified by means of a <code>saxon:output</code> option declaration in the
query prolog. For example:</p>
      <div class="codeblock"
           style="border: solid thin; background-color: #B1CCC7; padding: 2px">
         <pre>
            <code>declare namespace saxon="http://saxon.sf.net/";
declare option saxon:output "indent=yes";
declare option saxon:output "saxon:indent-spaces=3";</code>
         </pre>
      </div>
      <p>The standard serialization parameters described in 
<a href="http://www.w3.org/TR/xslt-xquery-serialization/" class="bodylink">The W3C Serialization specification</a>
are all available, namely:</p>
      <ul>
         <li content="para">
            <p>byte-order-mark</p>
         </li>
         <li content="para">
            <p>cdata-section-elements</p>
         </li>
         <li content="para">
            <p>doctype-public</p>
         </li>
         <li content="para">
            <p>doctype-system</p>
         </li>
         <li content="para">
            <p>encoding</p>
         </li>
         <li content="para">
            <p>escape-uri-attributes</p>
         </li>
         <li content="para">
            <p>include-content-type</p>
         </li>
         <li content="para">
            <p>indent</p>
         </li>
         <li content="para">
            <p>media-type</p>
         </li>
         <li content="para">
            <p>method</p>
         </li>
         <li content="para">
            <p>normalization-form</p>
         </li>
         <li content="para">
            <p>omit-xml-declaration</p>
         </li>
         <li content="para">
            <p>standalone</p>
         </li>
         <li content="para">
            <p>undeclare-prefixes</p>
         </li>
         <li content="para">
            <p>use-character-maps (only useful in XSLT)</p>
         </li>
         <li content="para">
            <p>version</p>
         </li>
      </ul>
      <p><i>Saxon interprets a zero-length value for <code>doctype-system</code> or <code>doctype-public</code>
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.</i></p>
      <p>The Saxon-supplied serialization parameters are described on the following pages.</p>
      <ul>
         <li>
            <p><a class="bodylink" href="output-extras/method.xml">The method attribute</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="output-extras/base64Binary-method.xml">The saxon:base64Binary serialization method</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="output-extras/hexBinary-method.xml">The saxon:hexBinary serialization method</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="output-extras/ptree-method.xml">The saxon:ptree serialization method</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="output-extras/character-representation.xml">The saxon:character-representation attribute</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="output-extras/double-space.xml">The saxon:double-space attribute</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="output-extras/indent-spaces.xml">The saxon:indent-spaces attribute</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="output-extras/line-length.xml">The saxon:line-length attribute</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="output-extras/next-in-chain.xml">The saxon:next-in-chain attribute</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="output-extras/recognize-binary.xml">The saxon:recognize-binary attribute</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="output-extras/require-well-formed.xml">The saxon:require-well-formed attribute</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="output-extras/supply-source-locator.xml">The saxon:supply-source-locator attribute</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="output-extras/suppress-indentation.xml">The saxon:suppress-indentation attribute</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="output-extras/xquery-method.xml">The saxon:xquery serialization method</a></p>
         </li>
         <li>
            <p><a class="bodylink" href="output-extras/user-defined-atts.xml">User-defined serialization attributes</a></p>
         </li>
      </ul>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="output-extras/method.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>