This topic explains how to apply and customize the XSLT tool in SOAtest and Virtualize. This tool transforms XML files.

Sections include:

Understanding the XSLT Tool

The XSLT tool transforms XML files using the style described in the specified XSL file. XSLT 1.0 and 2.0 are supported.

Transforming XML

We recommend that you specify the .xsl file you want the XSLT tool to use prior to applying the tool. For instruction on specifying the .xsl file, see Configuring the XSLT Tool.

If you are using this tool as a test or Responder suite output, you need to specify what XSL file it should use to transform the XML it receives. You can specify this in the XSLT Parameters panel. To open this panel, select the XSLT node in your test or Responder suite tree. In this panel, you can also specify whether you want this tool to store information in using relative paths (instead of absolute paths) and the MIME type of the transformed document.

If you are using this tool as a test or Responder suite tool, you need to specify what XML you want to transform, as well as what XSL file it should use to transform the specified XML. You can specify both of these parameters in the XSLT Parameters panel. To open this panel, select the XSLT node in your test or Responder suite tree. In the XSLT Parameters panel, specify the file or text you want to transform in the Input portion of the panel, then specify the XSL files that you want to use in the Tool portion of the panel. In the Tool portion of the tab, you can also specify whether you want this tool to store information in using relative paths (instead of absolute paths) and the MIME type of the transformed document.

An Edit output is added to the tool by default

If you want the transformed output saved, you need to add the Write File as an output for this tool.

Configuring the XSLT Tool

If you want a XSLT tool to always use the same XSL files for transformations, you can permanently associate a file with the tool. You can also determine the MIME type of the XSLT tool’s output.

You can set the XSLT tool’s XSL file and output type in the Configure XSLT panel. You can reach the Configure XSLT panel by double-clicking the XSLT test or Responder suite node.

You can then use the Mime type of transformed document menu to indicate which MIME type you want to use for transformed files and use the XSL File field to indicate which (if any) file you want to use as a permanent XSL file.

  • No labels