Subject: RE: [xsl] Is it possible to get " " in output rather than the encoded character? From: "Steven Reddie" <smr@xxxxxxxxxxxxxx> Date: Wed, 19 May 2004 18:23:52 +1000 |
Hi Michael, I've been playing around a little more and found that the processor ignores the encoding attribute of the xsl output method under certain circumstances. I've fixed that up, but also discovered the following in the documentation: If the Unicode characters do not fit the specified encoding, the XmlTextWriter does not escape the Unicode characters into character entities. I thought that including <xsl:output method="html" encoding="iso-8859-1"/> would tell the processor that   can't be encoded as a single character and would therefore have to be output as an escaped character code. With my current combination of xsl and .NET code invoking the processor, I'm getting '?' in place of each   whereas is I specify encoding of utf-8 or utf-16 then   is encoded correctly in UTF-8 or UTF-16. I'll keep digging, but it seems to me that there exists a serious limiation in their processor. Steven -----Original Message----- From: Michael Kay [mailto:mhk@xxxxxxxxx] Sent: Wednesday, 19 May 2004 6:08 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] Is it possible to get " " in output rather than the encoded character? > > Hi Ken, thanks for this info. Are you saying that by > outputting a single > character rather than the text " " that the processor is > non-conformant > (I think you're saying that section 16.2 makes this optional), or that > getting an 0xFF byte in the stream rather than an 0xA0 is the problem? It certainly would be non-conformant to output 0xFF here, but I suspect Ken was jumping too quickly to blame the software. I would want to look very carefully at how you invoked the processor - in particular, how the result tree was serialized - and at exactly what you did to the output before finding that 0xFF byte. Michael Kay
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] attributes to nested elem, Wendell Piez | Thread | RE: [xsl] Is it possible to get "&n, Michael Kay |
Re: [xsl] Is it possible to get "&n, Patrick van Halderen | Date | RE: [xsl] Is it possible to get "&n, Steven Reddie |
Month |