Using this dialog box, you may specify a transformation with one or two steps.
Procedure:
Enter the description of the transformation in the field named Description.
Enter the file name of the XSLT stylesheet in the field named XSLT stylesheet.
Add any number of parameters if needed to. See the section called “Specifying stylesheet parameters” to learn how to add or modify stylesheet parameters.
Select the None toggle to specify a one-step transformation. Select one of the XFC, FOP, or Other toggles to specify a two-step transformation.
If a FO processor has been selected, specify its options if needed to.
If Other has been selected, enter a command line template in the field named External command.
A command line template is any expression that can be executed by the native command interpreter of your platform (also called a shell. Examples: cmd.exe on Windows, /bin/sh on UNIX). It is called a template because it contains variables that the XSL Utility substitutes with file names just before passing the command to the shell.
Example: See PassiveTeX http://www.hcu.ox.ac.uk/TEI/Software/passivetex/ for an alternative to FOP.
cd %Td% ; pdfxmltex %T%
See below the variables substituted by XSL Utility.
Enter the extension of the output file in the field names Output file extension. This extension is needed when the Directory toggle is selected in the main window.
An optional command line template may be specified in the field named Preview or print command.
The command line template for previewing the output on Windows is almost always "start %O%".
Previewing HTML on UNIX can be achieved by specifying a more complex command line template such as:
(mozilla -raise -remote "openFile(%O%)" 1> /dev/null 2>&1) || (mozilla %Ou% &)
Table 1. Variables substituted in commands and stylesheet parameters
| Variable | Description | Example |
|---|---|---|
| %I% | Input file name | C:\docs\src\mydoc.xml |
| %Iu% | Input file URL | file:/c:/docs/src/mydoc.xml |
| %Id% | Directory containing the input file | C:\docs\src |
| %Idu% | URL of the directory containing the input file. (Notice the "/" at the end of the URL) | file:/c:/docs/src/ |
| %Ib% | Input file basename | mydoc.xml |
| %In% | Input file basename without its extension if any | mydoc |
| %Ie% | Extension of input file name | xml |
| %T% | Intermediate file name created by the first step of a two-step transformation | C:\docs\src\xfcxlsu456.tmp |
| %Tu% | Intermediate file URL | file:/c:/docs/src/xfcxslu456.tmp |
| %Td% | Directory containing the intermediate file. | C:\docs\src |
| %Tdu% | URL of the directory containing the intermediate file | file:/c:/docs/src/ |
| %Tb% | Intermediate file basename | xfcxlsu456.tmp |
| %Tn% | Intermediate file basename without its extension if any | xfcxlsu456 |
| %Te% | Extension of intermediate file name | tmp |
| %O% | Output file name | C:\docs\out\mydoc.rtf |
| %Ou% | Output file URL | file:/c:/docs/out/mydoc.rtf |
| %Od% | Directory containing the output file | C:\docs\out |
| %Odu% | URL of the directory containing the output file | file:/c:/docs/ |
| %Ob% | output file basename | mydoc.rtf |
| %On% | Output file basename without its extension if any | mydoc |
| %Oe% | Extension of output file name | rtf |