Special characters in XSLT


Posted on Monday, February 2nd, 2009 by Ryno Burger

Every now and then I find myself on google searching how to use special characters like ‘&laquo’, ‘&raquo’ 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;amp;laquo;]]>
</xsl:text>



So simple, but yet again so easy to forget.

Filed under XSLT/XSL.

Leave a Comment


-->