Programming with Reflection

image\rwnprg32.gif TransformXML method

 

Syntax object.TransformXML SourceXML, Transform, ResultsFile, [Params], [Options]

 

Description

Converts an input XML file into a new file, using the instructions in the specified transform file.

Arguments

SourceXML Argument type: String
Required
The name of a file in XML format. Use a full path if the file is not in the current directory. See the note below for information about how to convert Reflection settings to XML format.

Transform Argument type: String
Required
The name (and path) of an eXtensible Stylesheet Language (*.xsl) file that contains instructions for converting the file from XML format to a new format. The following *.xsl files are installed with Reflection to the Transforms/Rwin folder, which is located in your Reflection installation folder.

 

Filter exported Reflection XML settings.xsl

Reflection for the Web 5.0 Migration Report.xsl

Transform display memory to text.xsl

Transform mappings to HTML.xsl

Transform mappings to text.xsl

Transform registry settings to HTML.xsl

Transform registry settings to text.xsl

Transform settings to HTML.xsl

Transform settings to Japanese VB script.xsl

Transform settings to Reflection for the Web 5.0.xsl

Transform settings to text.xsl

Transform settings to VB script.xsl

Transform terminal screen to HTML.xsl

Transform terminal screen to text.xsl

 You can use DefaultTransformDirectory to specify a default folder when no path is given. If DefaultTransformDirectory is an empty string and no path is given, Reflection looks for the files in the Transforms/Rwin folder.

ResultsFile Argument type: String
Required
The name of the output file. The file is saved to the current folder unless you provide path information.

Params Argument Type: String
Optional
Optional arguments supported by the transform file you are using. Two of the transform files installed with Reflection support parameters:

Transform

Supported arguments

Transform mappings to HTML.xsl

"type=keys" - Only keyboard mappings are included in the output file.

"type=mouse" - Only mouse mappings are included in the output file.

"type=both" - All mappings are included.

When no argument is given all mappings are included. If any other argument is used, no mappings are included.

Transform mappings to text.xsl

Same as above

 

 For example, the following statement transforms keyboard mapping information that has been saved to an XML file to HTML format:

.TransformXML "Mysettings.xml, _

"C:\Mypath\\Transform mappings to HTML.xsl", _

"C:\Mypath\Myfile.html", "type=keys"

Options This argument is not currently used.

 

 

image\jump.gif Example

image\jump.gif Keyword Index

image\popup.gif Related Topics

image\popup.gif Reflection products that use this command