Rank: Newbie
Joined: 4/4/2019 Posts: 3 Location: USA
|
Hello,
I need to generate 2 XSLT versions of the same project but with a few different function and constants. Right now I have them in 2 different mapping files but I am wondering if there is an easy/better way to manage both projects under just one project. Right now, If I need to do a change or add/remove something I need to do it in both files as they share almost 95% of the logic.
I guess it is possible to use an if else to assign those constants but that logic will be available in the XSLT and I would like to avoid that. Is there any other way to do it?
Thanks, Miguel
|
Rank: Advanced Member
Joined: 6/16/2006 Posts: 487 Location: AT
|
This sounds like you could extract common parts of your mapping to user-defined functions stored in an MFD library mapping. Or, a bit more exotic, extract the diverging parts to user-defined functions in separate MFD libraries and change the library list whenever you want to work on the "other" mapping.
|