<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="../make-menu.xsl" type="text/xsl"?><html>
   <head>
      <this-is section="samples" page="trax" subpage=""/>
      <!--
           Generated at 2010-10-29T18:20:48.427+01:00--><title>Saxonica: XSLT and XQuery Processing: JAXP Transformation Examples</title>
      <meta name="coverage" content="Worldwide"/>
      <meta name="copyright" content="Copyright Saxonica Ltd"/>
      <meta name="title"
            content="Saxonica: XSLT and XQuery Processing: JAXP Transformation Examples"/>
      <meta name="robots" content="noindex,nofollow"/>
      <link rel="stylesheet" href="../saxondocs.css" type="text/css"/>
   </head>
   <body class="main">
      <h1>JAXP Transformation Examples</h1>
      <p><i>This section applies to the Java platform only.</i></p>
      <p>Saxon supports the Java JAXP Transformation API, originally known as TrAX (package javax.xml.transform)
 for invoking the XSLT stylesheet processor.
This API is useful when you want to write your own Java applications that invoke Saxon XSLT transformations.</p>
      <p>A sample program that illustrates many features of the TrAX interface (including Saxon-specific extensions)
is included in the distribution as <b>TraxExamples.java</b>. Source XML and XSLT files for use with this
program are included in the <b>trax</b> directory. To run the program, use the command:</p>
      <p class="command">
cd $saxonhome/samples/trax<br/>
java TraxExamples 
</p>
      <p>You can supply an argument to indicate which of the examples you want to run; see the source
code for details. By default, they are all executed in turn.</p>
      <table width="100%">
         <tr>
            <td>
               <p align="right"><a class="nav" href="servlet.xml">Next</a></p>
            </td>
         </tr>
      </table>
   </body>
</html>