![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Special character encoding [Thread Next] Re: Special character encodingTo: NULL Date: 7/6/2004 11:18:00 AM Nitin M wrote: > I have an xml schema with some custom tags inside the xs:documentation > section. I use an XSLT to generate some text and xml out of this. I have set > the output method to "text" and encoding to "utf-8" in the xslt. However, I > want that any special characters should be xml encoded in the output xml and > text that I generate (& should be encoded to & and so on). If you choose output method text then no encoding will happen as plain text doesn't know about entity references like & > I have tried using disable-output-escaping but it does not seem to work. > Right now I am using the html codes like & etc. but this is not user > friendly. > > Is there any way out? If you want to have & in your text output then you need <xsl:text>&amp;</xsl:text> -- Martin Honnen http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
