tranformation scenario types

Having trouble installing Oxygen? Got a bug to report? Post it all here.
emmam
Posts: 16
Joined: Sat Jul 28, 2012 11:41 am

tranformation scenario types

Post 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" ?
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: tranformation scenario types

Post 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
Post Reply