<?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="next-in-chain"/>
      <!--
           Generated at 2011-12-09T20:47:22.916Z--><title>Saxonica: XSLT and XQuery Processing: The saxon:next-in-chain attribute</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: The saxon:next-in-chain attribute"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>The saxon:next-in-chain attribute</h1>
      <p>The <code>saxon:next-in-chain</code> attribute (XSLT-only) is used to direct the output to another stylesheet. The
                              value is the URL of a stylesheet that should be used to process the output stream. In this case
                              the output stream must always be pure XML, and attributes that control the format of the output
                              (e.g. method, cdata-section-elements, etc) will have no effect. The output of the second stylesheet
                              will be directed to the destination that would have been used for the first stylesheet if
                              no <code>saxon:next-in-chain</code> attribute were not present.</p>
      <p>Supplying a zero-length string is equivalent to omitting the attribute, except that it can be used
                              to override a previous setting.</p>
      <div class="boxed"
           style="border: solid thin; background-color: #B1CCC7; padding: 2px">An alternative way of chaining transformations is to use the 
                              <a class="bodylink" href="../../extensions/functions/compile-stylesheet.xml">saxon:compile-stylesheet()</a>
                              and
                              <a class="bodylink" href="../../extensions/functions/transform.xml">saxon:transform()</a> extension functions.</div>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="recognize-binary.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>