![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: xsl:copy-of does not preserve disable-output-escaping [Thread Next] Re: xsl:copy-of does not preserve disable-output-escapingTo: NULL Date: 2/6/2007 11:37:00 AM shurik wrote: > Thank you for your reply, > > It looks like <xsl:text>&_#_0_1_6_0_;</txsl:text> works for me (underscores > added to prevent encoding within the forum post) > > But I am not sure I understand why and how it works. > What I need is to output the "No-Break Space" character to HTML (in the > manner I described anove, a temporary tree is generated first and then copied > to ouput). "No-Break Space" character code in Unicode is 0xA0 and is named entity reference which usually refers to that character. So instead of named reference, generating of which is troublesome in XSLT, you can use numeric character reference &#x_A_0; or �_1_6_0; (the same), that's it. > Which encoding should I specify in XML declaration\xsl:output directives to > be sure it will work everywhere? Are there other possible issues with this > solution? Document encoding doesn't matter, numeric character references refer to Unicode character code. It's safe, don't worry, everybody using _6_0; instead of . -- Oleg Tkachenko [XML MVP, MCPD] http://blog.tkachenko.com | http://www.XmlLab.Net | http://www.XLinq.Net | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
