Page 1 of 1

Can I run one XSLTtransformation after another automatically

Posted: Mon Mar 30, 2015 5:16 pm
by iBall
What I have been doing is transforming XML to XML and then taking another XSLT stylesheet and transforming the result XML to fixed width. Is there anyway to do this in one take?
So I'm using two separate XSLT stylesheets:
-1 for the first transformation (original.XML -> result.XML)
-2 for the second transformation (result.XML -> .txt)

Re: Can I run one XSLTtransformation after another automatic

Posted: Mon Mar 30, 2015 6:13 pm
by Costin
Hello,

oXygen allows you to use multiple stylesheets for your transformation, so adding an additional XSL to your transformation could be the solution you are looking for.
This way, the resulting output from the transformation of your XML file with the first XSL would be considered as the input for the 2nd transformation.

In order to use multiple XSL files for your transformation, you should go into the "Configure Transformation Scenario(s)" configuration dialog, from oXygen menu Document > Transformation (or using the appropriate shortcut in the toolbar), edit your scenario and just add the additional stylesheet under the XSLT tab > Additional XSLT Stylesheets.
Apply the changes and then you could run your transformation using your multiple stylesheets.

Best Regards,
Costin

Re: Can I run one XSLTtransformation after another automatic

Posted: Mon Mar 30, 2015 10:35 pm
by iBall
Worked like a charm, thank you Costin.