<?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="finally"/>
      <!--
           Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: saxon:finally</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title" content="Saxonica: XSLT and XQuery Processing: saxon:finally"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>saxon:finally</h1>
      <p>A <code>saxon:finally</code> instruction may be included as the last child of <code>saxon:iterate</code>; it is executed when
the end of the input sequence is reached. It is <b>not</b> evaluated if the loop is terminated using <code>saxon:break</code>. The focus
(context node, position, and size) for this instruction is undefined; however, variables
declared within the loop including the loop parameters are available for reference. The loop parameters have
their values as set by the <code>saxon:continue</code> instruction that ended the last normal iteration.</p>
      <p>For further details and examples see <a class="bodylink" href="../../extensions/instructions/iterate.xml">saxon:iterate</a>.</p>
      <p><i>This instruction is available in Saxon-EE only</i></p>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="import-query.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>