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:
- Configure the environment variable setting scripts.
- 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:
- WC_installdir/logs/xmltransform.db2.log
- WC_installdir/logs/xmltransform.oracle.log
- WCDE_installdir/logs/xmltransform.log
Run this utility as the non-root WebSphere Commerce user ID. Do not run this command as root.
Utility command
The xmltransform utility has the following file name:
- xmltransform.sh
- xmltransform.cmd
- xmltransform.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:
xmltransform.cmd
-infile MemberSubsystemExtracted.xml -transform
MemberSubsystem.xsl
-outfile TransMbrStr.xml -param 'language="-10"'
./xmltransform.sh
-infile MemberSubsystemExtracted.xml -transform
MemberSubsystem.xsl
-outfile TransMbrStr.xml -param 'language="-10"'