Subject: Re: [xsl] how to get an NCR in the output? From: Tobias Reif <tobiasreif@xxxxxxxxxxxxx> Date: Sun, 05 Jan 2003 21:08:19 +0100 |
Serving XHTML as text/html may add to the confusion. When you do that, most browsers (especially since very few have true support for XHTML) are not aware that they are processing XML, so they go into HTML tag soup processing mode and see the XML declaration as just junk. That's why I suggested the META.
It is not outside the realm of possibility for an XSLT processor to give you the option of emitting NCRs even when the output encoding allows those characters to be encoded directly. Most don't offer such functionality, however. Saxon does (saxon:character-representation="decimal" in xsl:output).
You're also free to output us-ascii, if your processor supports it, and then
rewrite the encoding declaration afterward (or override it out-of-band, e.g. in the HTTP Content-Type header) to say utf-8 or some other us-ascii superset.
XML does have a clause saying that it's an error to misdeclare the encoding,
but it goes on to say that ASCII entities don't strictly need a declaration since the UTF-8 assumption won't cause problems.
Vim users donate. http://iccf-holland.org/donate.html
Web developers check. http://www.pinkjuice.com/check/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] how to get an NCR in the , Mike Brown | Thread | RE: [xsl] how to get an NCR in the , Passin, Tom |
Re: [xsl] [OT] charset (was: how to, Tobias Reif | Date | Re: [xsl] Proposal: Copying with So, Dimitre Novatchev |
Month |