Can I run one XSLTtransformation after another automatically

Here should go questions about transforming XML with XSLT and FOP.
iBall
Posts: 9

Can I run one XSLTtransformation after another automatically

Mon Mar 30, 2015 5:16 pm

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: 307

Re: Can I run one XSLTtransformation after another automatic

Mon Mar 30, 2015 6:13 pm

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

Re: Can I run one XSLTtransformation after another automatic

Mon Mar 30, 2015 10:35 pm

Worked like a charm, thank you Costin.

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 1 guest