[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: output encoding character map
As Chris Maden says, C$ is not x201e. I think you can assume that x201e
is the character at fault, and that C$ is an incorrect attempt to render
it (if it's console output, then in my experience console output does
some strange things with non-ASCII characters, though it no doubt
depends on various configuration settings, not to mention your choice of
operating system).
You shouldn't need a character map to translate characters that aren't present in the chosen encoding to their numeric &-escaped form; Saxon should do this automatically for characters in text or attribute nodes. If the character is outside a text or attribute node (for example in an element name or in a comment), then character maps won't help you anyway, because they aren't used in those contexts. Looking at the Saxon code, this error message is produced only when output escaping is disabled. This could be because you explicitly set disable-output-escaping in your source, or because Saxon has disabled output escaping internally, which it does for example when writing a CDATA section. The spec says this: Character mapping is not applied to characters for which output escaping has been disabled. Could it be the case that your stylesheet uses disable-output-escaping as well as character maps? The spec also says this: If output escaping is disabled for a character that is not representable in the encoding that the processor is using for output, the request to disable output escaping is ignored in respect of that character. but I'm not sure I can find any code in Saxon that implements that rule. And it's not clear whether ignoring the request to disable output escaping means that the character map should then kick in under the previously-cited rule... Michael Kay Saxonica On 03/08/2012 07:16, Szabo, Patrick (LNG-VIE) wrote: Hi,
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|