<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../../make-menu.xsl" type="text/xsl"?><html>
   <head>
      <this-is section="changes" page="intro" subpage="serialization-93"/>
      <!--
           Generated at 2010-10-29T18:20:48.427+01:00--><title>Saxonica: XSLT and XQuery Processing: Serialization</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title" content="Saxonica: XSLT and XQuery Processing: Serialization"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>Serialization</h1>
      <p>Two new serialization methods are introduced, <a class="bodylink" href="../../extensions/output-extras/base64Binary-method.xml">saxon:base64Binary</a>
and <a class="bodylink" href="../../extensions/output-extras/hexBinary-method.xml">saxon:hexBinary</a>. These are useful when writing binary output
files such as images. They can be used in conjunction with the <code>xsl:result-document</code> instruction, using a result tree whose text
nodes contain, in base64 or hexBinary format, the binary data to be output. These serialization methods require Saxon-PE or higher.</p>
      <p>The existing serialization method <code>saxon:xquery</code> is now available only in Saxon-PE or higher.</p>
      <p>The <code>suppress-indentation</code> serialization parameter (previously available as an extension in the Saxon namespace) is now
               implemented.</p>
      <p>A new serialization property <code>saxon:line-length</code> is introduced. 
Its value is an integer, with default value 80. With both the HTML and XML 
output methods, attributes are output on a new line if they would otherwise 
extend beyond this column position. With the HTML output method, furthermore, 
text lines are split at this line length when possible. In previous releases, 
the HTML output method attempted to split lines that exceeded 120 characters in 
length.</p>
      <p>In the XQJ interface, serialization properties are now validated. The XQJ spec is not very clear about how all parameters should
be supplied: follow the conventions of JAXP interfaces such as <code>Transformer.setOutputProperty()</code>. In particular, the values
for boolean properties should be set to the string "yes" or "no".</p>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="ant-93.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>