A. Variables

VariableSubstituted inValue
%IOutput file field, XSLT stylesheet parameter value, XSL-FO processor parameter value, process command.

The input file.

%XXSLT stylesheet parameter value, XSL-FO processor parameter value, process command.

The XSLT stylesheet file.

When there is no transform step or when the XSLT stylesheet is not located on the local file system, the value of this variable is the empty string.

Note that the value of variable %X may be the empty string and that, at the same time, the value of variable %x may be a valid URI. See the URI counterparts below.

%WXSLT stylesheet parameter value, XSL-FO processor parameter value, process command.

A temporary working directory always created by a conversion, just in case it could be useful.

Not available when the "Input file is a DITA topic or map" checkbox is checked.

%TXSLT stylesheet parameter value, XSL-FO processor parameter value, process command.

The temporary file generated by the transform step.

This temporary file is created in the directory of the input file, that is %~pT is equal to %~pI (see modifiers below). This implies that you must have the write permissions on the directory containing the input file.

Remarks:

  • When there is no transform step, the value of this variable is the empty string.

  • When there is no process step and when the conversion does not require/create an output directory, the transform step directly generates the output file (variable %O). In such case, variable %T is still defined, but it is not actually used.

This variable is always equal to %~pO%S%~rO.fo when the "Input file is a DITA topic or map" checkbox is checked.

%OXSLT stylesheet parameter value, XSL-FO processor parameter value, process command, preview command.

The output file or directory.

%SEverywhere: output file field, XSLT stylesheet parameter value, XSL-FO processor parameter value, process command, preview command.Portable filename separator: '\' on Windows, '/' on all the other platforms.

The following variables: %i, %x, %w, %t, %o are the URI counterparts of the variables representing filenames: %I, %X, %W, %T, %O. Examples:

When a variable represents a filename or an URI, the following modifiers allow to refer to a part of this filename or URI. Let's suppose that the value of variable %I is C:\Users\john\Documents\doc src\manual.xml.

ModifierDescriptionExample
~pParent directory.

%~pI = C:\Users\john\Documents\doc src

%~pi = file:/C:/Users/john/Documents/doc%20src/ (note the trailing '/')

~nBasename of the file, including the extension.

%~nI = manual.xml

%~ni = manual.xml

~rBasename of the file, without the extension.

%~rI = manual

%~ri = manual

~eFile extension, if any.

%~eI = xml

%~ei = xml