What is the best way to strip/replace the {}
characters from the Sitecore item @id output in xslt?
Problem:
I have to identity certain tags in my html from the id
attribute. Using names is dangerous because of the risk of the Sitecore end user typing spaces or illegal characters in the name.
On the other hand using the item id causes the id in the html to say: id="{xxxxxxxx-xxx(...)}
, in which case the {}
are illegal as characters in html id attribute.
So:
What is the best way to strip/replace the {}
characters from the xslt @id output?