Page 1 of 1

tranformation scenario types

Posted: Sat Jul 28, 2012 11:52 am
by emmam
Hi all,

Reading the documentation, I donc quite get the difference between the types
"XML XSLT" and "XSLT" in the configuration scenario dialog window.

XML XSLT is described as "Transformation scenarios that apply an XSLT stylesheet over an XML" and XSLT as "XSLT - Transformation scenarios that apply an XSLT stylesheet over an XML file".

Sorry for the basicness of the question, but what's the difference between "an xml" and "an XML file" ?

Re: tranformation scenario types

Posted: Mon Jul 30, 2012 10:30 am
by sorin_ristache
Hello,

The difference is that a scenario of type XML Transformation with XSLT can be associated with XML files and a scenario of type XSLT Transformation can be associated with XSLT files. The distinction matters when you want to create a scenario once and associate it with multiple files for executing it on multiple files.

For example let's suppose you want to apply the same XSLT stylesheet to more than one XML file. You can do that by creating a new scenario of type XML Transformation with XSLT, you leave the default value of the XML URL text box which is ${currentFileURL} and you set a specific XSLT stylesheet in the XSL URL text box. After that you can associate this scenario with other XML files without changing anything in the scenario, because the ${currentFileURL} editor variable means that the current XML editor will provide the XML input of the transformation when the scenario is executed.


Regards,
Sorin