<?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=""/>
      <!--
           Generated at 2010-10-29T18:20:48.427+01:00--><title>Saxonica: XSLT and XQuery Processing: Extension instructions</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: Extension instructions"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>Extension instructions</h1>
      <p>A Saxon extension instruction is invoked using a name such as <code>&lt;saxon:localname&gt;</code>.</p>
      <p>The <code>saxon</code> prefix (or whatever prefix you choose to use) must be associated with the
Saxon namespace URI <code>http://saxon.sf.net/</code>. The prefix must also be designated as an
extension element prefix by including it in the
<code>extension-element-prefixes</code> attribute on the <code>xsl:stylesheet</code> element, or the
<code>xsl:extension-element-prefixes</code> attribute on any enclosing literal result element or
extension element.</p>
      <p>However, top-level elements such as <code>saxon:collation</code> and
<code>saxon:script</code> can be used without
designating the prefix as an extension element prefix.</p>
      <p>The extension instructions and declarations are:</p>
      <ul>
         <li>
            <p><a class="bodylink" href="instructions/assign.xml">saxon:assign</a>: assigns a new value to a global variable</p>
         </li>
         <li>
            <p><a class="bodylink" href="instructions/break.xml">saxon:break</a>: breaks out of a saxon:iterate loop</p>
         </li>
         <li>
            <p><a class="bodylink" href="instructions/call-template.xml">saxon:call-template</a>: calls a template whose name is decided at run-time</p>
         </li>
         <li>
            <p><a class="bodylink" href="instructions/catch.xml">saxon:catch</a>: used within saxon:try to catch dynamic errors</p>
         </li>
         <li>
            <p><a class="bodylink" href="instructions/collation.xml">saxon:collation</a>: names and describes a collating sequence</p>
         </li>
         <li>
            <p><a class="bodylink" href="instructions/continue.xml">saxon:continue</a>: continues execution of a saxon:iterate loop</p>
         </li>
         <li>
            <p><a class="bodylink" href="instructions/doctype.xml">saxon:doctype</a>: constructs a serialized DOCTYPE declaration</p>
         </li>
         <li>
            <p><a class="bodylink" href="instructions/entity-ref.xml">saxon:entity-ref</a>: creates an entity reference in the serialized output</p>
         </li>
         <li>
            <p><a class="bodylink" href="instructions/finally.xml">saxon:finally</a>: continues execution of a saxon:iterate loop</p>
         </li>
         <li>
            <p><a class="bodylink" href="instructions/import-query.xml">saxon:import-query</a>: imports functions from an XQuery library module</p>
         </li>
         <li>
            <p><a class="bodylink" href="instructions/iterate.xml">saxon:iterate</a>: iterates over a sequence in order, allowing parameters to be set</p>
         </li>
         <li>
            <p><a class="bodylink" href="instructions/mode.xml">saxon:mode</a>: declares properties of a mode</p>
         </li>
         <li>
            <p><a class="bodylink" href="instructions/script.xml">saxon:script</a>: declares an extension function</p>
         </li>
         <li>
            <p><a class="bodylink" href="instructions/try-instr.xml">saxon:try</a>: evaluates an expression with recovery from dynamic errors</p>
         </li>
         <li>
            <p><a class="bodylink" href="instructions/while.xml">saxon:while</a>: iterates until a condition becomes false</p>
         </li>
      </ul>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="instructions/assign.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>