Transforming by XSLT and publishing by FTP

We propose here a simple scenario for publishing in HTML a set of XML files. We suppose we have several XML files located inside the /tmp/xmlinput directory and we would like to publish it inside our FTP server. We use an XSL Transformation to have HTML documents. So we need to create two tasks :
  1. Transforming a set of XML Files
  2. Copying a set of resulting HTML Files
Tutorial 1 A

We create a first task selecting the "XSLT" Action. We update the name and select the XSLT Action and we edit the parameters below :

Tutorial 1 B

Here the content of the first task. In this sample, we transform all the xml files from the /tmp/xmlinput directory using the /tmp/stylesheet/person.xsl XSLT file. The output is stored inside the /tmp/xmloutput directory. The file name will be convert from .XML to .HTML using a regular expression (look at the section II.a. of the manual).

We create now a second task selecting the "COPY" action with the following parameters :

Tutorial 1 B

In this previous screenshot, we get all the html files of the /tmp/xmloutput and we copy it inside our remote server to the /test directory.

We run our scenario with this action from the main toolbar element run or from the scenario menu and we have the following logs :

Tutorial 1 - D

All our personX.xml files are well converted to HTML and stored inside our FTP server.