Tools - XSLT Transformation Wizard

The XSLT Transformation Wizard allows you to quickly convert an XML document into a document of a different type using an XSLT stylesheet. You can read more about XSLT at W3C - XSL Transformations (XSLT) Version 1.0.

The wizard has a friendly interface that guides you through all stages of the transformation preparation process, starting from selecting the document to be transformed, ending with saving the target documents and displaying the report.

Launching

You can run the XSLT Transformation Wizard using the command marked with the icon shown above located in the Main Menu / Tools / Markup Code Wizards, and also using the button shown above located on the toolbar.

You move between boards using the Next and Back buttons.

Source document selection

On the first page, you can choose which file (or files) to transform:

  • currently open document
  • all open documents
  • specified file
  • documents from selected folders
  • documents from a web project

If you choose one of the last three items, in the next page you will be able to select a file, a folder (with subfolders and indicate document types), or a web project (and indicate document types), respectively.

XSLT sheet selection

In this page you can select from disk the XSLT sheet to be used for transformation:

use a declared XSLT sheet - select this option if a sheet declared in the source document is to be used,

  • ask for the sheet name when no declaration - check if the program should ask for the sheet name when it has not been declared in the source document

use the indicated XSLT sheet for all documents - select this option if you want to select an XSLT sheet from disk and apply it to all processed source documents, regardless of the declarations in individual documents.

Some of the above options may not be present (depending on the option selected on the first page).

Target file settings

In this page, you can indicate the folder where the target documents created after the transformation will be saved, as well as set options for the names of these documents:

Destination folder
Enter the path to the folder where the destination documents will be saved. You can use the command next to it to select a folder on the disk.

Conversion result file names

  • keep existing file names
  • change file extensions to: - check this option and select an extension from the list, or enter your own
  • add text to file names - select this option and enter the text to be added to the end of the target file names

The case of the target file names:

  • keep the existing size
  • lowercase
  • CAPITALS

Final Report

The last page contains a report on how the wizard works. The main element of the window is the list of target files created during the transformation.

The list includes the following columns:

  • Source file - path and name of the source file
  • XSLT sheet - path and name of XSLT sheet
  • Destination file - path and name of the file resulting from the transformation
  • Result - information about the progress of the transformation. If there were errors, here you will find information about it.

The menu on the right side of the list contains commands that (after selecting an item in the list) allow:

  • Opening the source file in Spider
  • Opening the XSLT sheet in Spider
  • Opening the resulting file in Spider
  • Preview the source file
  • XSLT sheet preview
  • Preview of the resulting file

Using the commands under the list, you can save the report to disk in the format:

  • TXT
  • HTML

After reviewing the report, if everything went as you expected and there were no errors, you can use the END button to finish the wizard.

Related topics

To top