Page 1 of 1

global change of transformer in transformation scenario

Posted: Tue Mar 27, 2012 7:31 pm
by sderrick
We just switched over to using SaxonPE

All my transformers in my transformation scenarios are set to use SaxonHE.

I have a ton of them.

Anyway to switch them all in one Swell Foop?

Scott

Re: global change of transformer in transformation scenario

Posted: Wed Mar 28, 2012 6:06 pm
by ionela
Hi Scott,

Unfortunately you cannot do this from the user interface in one swoop.

However, this can be done indirectly by modifying the options/project file. To do this, export the global options from Option -> Export Global Options. Open the exported XML file in Oxygen and you will be able to identify the transformer name in an element with the attribute "name" set to "xslTransformer". You can use the Find > Find/Replace (Ctrl+F) tool to replace the string Saxon-HE with Saxon-PE. To provide a better filtering use in the XPath field:
//field[@name="xslTransformer"]
Save the file and import it back in Oxygen: Option -> Import Global Options

In case your scenarios are kept in the project(Project Scenarios in the Configure Transformation Scenario dialog) you should modify this directly in the the project file(.xpr).

Regards,
Ionela

Re: global change of transformer in transformation scenario

Posted: Thu Mar 29, 2012 12:59 am
by sderrick
Excellent.

Just what I was looking for and worked like a charm..

thanks,

Scott