Can I run one XSLTtransformation after another automatically

Here should go questions about transforming XML with XSLT and FOP.
iBall
Posts: 9
Joined: Thu Mar 26, 2015 5:53 am

Can I run one XSLTtransformation after another automatically

Post 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)
Costin
Posts: 829
Joined: Mon Dec 05, 2011 6:04 pm

Re: Can I run one XSLTtransformation after another automatic

Post 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
Costin Sandoi
oXygen XML Editor and Author Support
iBall
Posts: 9
Joined: Thu Mar 26, 2015 5:53 am

Re: Can I run one XSLTtransformation after another automatic

Post by iBall »

Worked like a charm, thank you Costin.
Post Reply