<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../../make-menu.xsl" type="text/xsl"?><html>
   <head>
      <this-is section="extensions" page="instructions" subpage="mode"/>
      <!--
           Generated at 2010-10-29T18:20:48.427+01:00--><title>Saxonica: XSLT and XQuery Processing: saxon:mode</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title" content="Saxonica: XSLT and XQuery Processing: saxon:mode"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>saxon:mode</h1>
      <p>The <code>saxon:mode</code> element is a top-level element. 
It is used to define properties of a mode, in particular whether the mode is streamable.</p>
      <p>The <code>name</code> attribute indicates the name of the mode (which will normally match the
<code>mode</code> attribute of one or more template rules. Specifying <code>name="#default"</code>
is equivalent to omitting the attribute, and indicates that the declaration applies to the default (unnamed) mode.</p>
      <p>The <code>streamable</code> attribute takes the value <code>yes</code> or <code>no</code>, 
default <code>no</code>. If <code>yes</code> is specified, all template rules in this mode
must be streamable templates, and all processing using these template rules is done using streaming.</p>
      <p>This declaration is available only in Saxon-EE.</p>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="script.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>