# Okapi Framework - Steps ## XSL Transform Step
- Overview - Parameters |
Steps | Developer's Guide | Okapi Framework

If you are using an Okapi Tool after the M9 release, you should be using the wiki online help:
http://www.opentag.com/okapi/wiki/index.php?title=XSL_Transformation_Step

## Overview

This step applies an XSLT template on the input documents.

Takes: Raw document
Sends: Raw document

The input documents must be well-formed XML documents. The step takes the XSLT template you have specified and apply it to the input document and creates an output that is passed as the raw document for the next step.

## Parameters

Path of the XSLT template to apply -- Enter the full path of the XSLT template you want to apply on the input documents.

Parameters -- Enter the list of any required parameters for this template. the format must be `name=value` with one parameter per line. For example:

    Lang=en
    tmFile=myTM.tmx
    inputFile=${inputPath2}

You can use the following variables in the parameters values:

Variable | Description | Example
--- | --- | ---
`${inputPath}` | The full path of the first input document. |
`${inputURI}` | The URI of the first input document |
`${outputPath}` | The full path of the first output document. |
`${inputPath1}` | The full path of the first input document (same as `${inputPath}`). |
`${inputURI1}` | The URI of the first input document (same as `${inputURI}`). |
`${outputPath1}` | The full path of the first output document. (same as `${outputPath}`). |
`${srcLang}` | Code of the language part of the source locale identifier. | For "`de-ch`" this returns "`de`"
`${trgLang}` | Code of the language part of the target locale identifier. | For "`ja-jp`" this returns "`ja`"
`${inputPath2}` | The full path of the second input document. |
`${inputURI2}` | The URI of the second input document. |
`${inputPath3}` | The full path of the third input document. |
`${inputURI3}` | The URI of the third input document. |

Default Parameters -- Click this button to copy into the parameters list all the default parameters declared in the template.

Open Template -- Click this button to open the XSLT template file currently specified.

Use the transformer created by this factory class -- Set this option to use an XSLT transformer implementation different than the one your current Java settings gives. Enter the name of the factory class in the text field. The class specified must be in your Java class-path. For example: `net.sf.saxon.TransformerFactoryImpl`.

The default transformer class used depends on the implementation and version of your Java Virtual Machine. See the documentation of `TransformerFactory.newInstance()` for more details on how the lookup for the class is done.