Transform XML Action

Description

Transforms the XML file into HTML file using an XSLT file. You can also provide the XSLT parameter, which will be replaced by its value dynamically.

Declaration

<AMXMLTRANSFORM XSLTFILE="text" HTMLFILE="text" OVERWRITEFILE="text [options]"><Parameter Name="text" Value="text" /></AMXMLTRANSFORM>

Example

<AMXMLTRANSFORM XSLTFILE="C:\Cars.xsl" HTMLFILE="C:\CarOutput.html" OVERWRITEFILE="YES" SESSIONNAME="XML1" />

General Tab Parameters

XSLT file: Allows you to specify the location of XSLT file on your local system.

Text, Required
MARKUP: XSLTFILE="C:\Log\Auto.xsl"

HTML file: Allows you to specify the location on your local system where you want to store the HTML file.

Text, Required
MARKUP: HTMLFILE="C:\Log\Output.html"

Overwrite if file exists: If set to Yes, specifies that if the file already exists, it will be overwritten with the new document. If set to No, the step fails if the file already exists.

Text [options], Optional - Default "No"
MARKUP: OVERWRITEFILE="YES"

Session name: Specifies the session name to run the XML file in subsequent XML steps. This allows several connections to be active simultaneously.

Text, Optional - Default "XMLSession1"
MARKUP: SESSIONNAME="FirstXMLSession"

XSLT Parameter Tab (optional)

If the XSLT file has parameters that can be dynamically replaced in the HTML file during transformation, you can specify them using this Tab. It also adds a new node Parameter into AML Code. e.g. (<Parameter Name="Make" Value="BMW" />).

To insert parameters into new node

  • Provide a name in left bottom text box and a value in the right bottom text box, then click Add. The name and value appear in the list.

Name: Specifies the name of the parameters.

Text, Optional
MARKUP: Name="Make"

Value: Specifies the value of the parameter.

Text, Optional
MARKUP: Value="Toyota"

Move Up: Moves a selected parameter up the list.

Move Down: Moves a selected parameter move it down the list.

Modify: Modifies a selected parameter names and values.

Remove: Removes a selected parameter.

See Also

Sign XML File Action