XSL to Razor Function Converter
Created by Orckestra
How to convert an XSLT function into a Razor function
- From the "Functions" perspective, expand "XSLT Functions" and locate and select the function you wish to convert.
- Click "Convert to Razor" on the toolbar. A message box will pop up, which suggest following up on the manual conversion.
- Close the message box.
Note that the XSLT function has been renamed to "{FUNCTION_NAME}_backup".
Now continue with the Razor function:
- Expand "Razor Functions" and locate and edit the newly created function.
- Modify the function as suggested in the message box in Step 2 where necessary: manually converting other parts of the function:
- Default values for parameters
- Function calls
- Transformation template itself
- Save the function.