xmltransform utility

The xmltransform utility changes, aggregates, and remaps the data in an XML document to alternative XML formats for use by other users or systems as needed.

Before running this utility, ensure that you have complete the required configuration tasks:

  1. Configure the environment variable setting scripts.
  2. Configure tracing and logging for the loading utilities.

Filenames specified as parameters for this utility can be preceded by relative or absolute paths. Relative paths must be relative to the directory from which you run the xmltransform utility.

In addition to the trace log and message log for the loading utilities, this utility produces the following log file:

  • DB2WC_installdir/logs/xmltransform.db2.log
  • WC_installdir/logs/xmltransform.oracle.log
  • WebSphere Commerce DeveloperWCDE_installdir/logs/xmltransform.log

SolarisLinuxAIX Run this utility as the non-root WebSphere Commerce user ID. Do not run this command as root.

xmltransform utility syntax diagram. See the list called Parameter values for the applicable parameters.

Utility command

The xmltransform utility has the following file name:

  • For IBM i OS operating systemSolarisLinuxAIXxmltransform.sh
  • Windowsxmltransform.cmd
  • WebSphere Commerce Developerxmltransform.bat

Parameter values

-infile
Name of the file to be transformed
-transform
Name of the transform XSL rule file
-outfile
Name for the output XML file in which the transformed data will be stored
-param
Parameter to be passed to the XSL rule file. This parameter is optional. This parameter can be specified multiple times to pass multiple "name=value" pairs.

Example

The following example transforms the data in MemberSubsystemExtracted.xml using MemberSubsystem.xsl as the transform XSL rule file with Japanese as the national language:

Windows


xmltransform.cmd
  -infile MemberSubsystemExtracted.xml -transform
MemberSubsystem.xsl
  -outfile TransMbrStr.xml -param 'language="-10"'
For IBM i OS operating systemSolarisLinuxAIX


./xmltransform.sh
  -infile MemberSubsystemExtracted.xml -transform
MemberSubsystem.xsl
  -outfile TransMbrStr.xml -param 'language="-10"'