I have a scenario that I will have two transformations, one is csv2xml, the other is xml2csv. The logic would be csv2xml action -> business action -> xml2csv action.
My question is that is it better for me two define 2 separate smooks-res.xml or just one smooks-res.xml to include all these two transformations, and then use the "profile" feature to support this? What's the best practice for doing this sort of job? by the way, I really don't like to use too many xml files.
It's really a case of personal preference and I wouldn't say one approach is better than the other. Personally I'd go for separate config files for the separate transforms, but if you don't like having too many config files, then a single config and using a profile to select the transform is an option for you.