Special characters in XSLT
Every now and then I find myself on google searching how to use special characters like ‘«’, ‘»’ etc. even though I’ve used is so many times before.
So I decided do make a note of it here for future reference.
To include special characters in XSL / XSLT enclose the characters in a CDATA elements for example:
<xsl:text disable-output-escaping="yes"> <![CDATA[&amp;laquo;]]> </xsl:text>
So simple, but yet again so easy to forget.
Filed under XSLT/XSL.
Leave a Comment