Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - How to emit entities instead of UTF-8? [Thread Next] Re: How to emit entities instead of UTF-8?To: NULL Date: 10/17/2008 12:47:00 PM Siegfried Heintze wrote: > I have an svg file with lots of 16 bit unicode Chinese characters expressed > with XML entities. > > I'm trying to write an XSL to extract these and it is working. > Unfortunately, it is generating UTF-8 and that is ugly. Is there a way to > make it (re)generate XML entities which display nicely in brain damaged > editors? You could try <xsl:output encoding="US-ASCII"/> or perhaps <xsl:output encoding="ISO-8859-1"/> In the case of an XSLT 2.0 processor like Saxon the software is then required to output any characters outside of that encoding as character references (as long as that is allowed e.g. in element or attribute content). http://www.w3.org/TR/xslt-xquery-serialization/#XML_ENCODING -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
