Last week we had a session with Bart who did a great job explaining SDL Tridion in the way implementers see it.
However, this meeting left me with a feeling that XSLT is one of the misused and misunderstood tools which is not popular with developers or implementers. Probably because it requires a bit more knowledge to be applied successfully.
CME supports XSLT extensibility and the mechanism itself is relatively simple. It allows you to include your own XSL transformations at the top or at the bottom of extending XSLT file.
Let`s create a simple extension to see it in action.
Some of you probably use double `minus` character instead of `dashes` creating some texts. Let`s add a format area extension which will convert `–` to `—` when you switch from source tab to design or preview tabs.
First you have to create a transformation itself, which is relatively simple for our scenario:
Then you have to configure xslstylesheetextensions section in your editor extension:
Now you have to increase a modification value in system.config, and restart IIS.
Finally, open a component with FormatArea and paste the following text into Source Tab:
‘ Tridion.UIBeardcore -- blog about Tridion.UI extensibility ’
And switch to Design Tab.