Subject: Re: [xsl] How can I preserve ASCII Encoding Character Sets? From: Michael Kay <mike@xxxxxxxxxxxx> Date: Tue, 06 Nov 2012 22:21:29 +0000 |
Thank You Michael and Ken,Encoding non-ASCII characters as character references can help to prevent transcoding errors like this, but it's better to find out why they are happening and to eliminate the root cause. What has happened is that your "resulting XSL" file contains the character coded in one encoding (say Windows-1252) but whoever is reading it thinks it is in a different encoding (say UTF-8). Often this happens because an XML file is written without an XML declaration to specify its encoding, and the recipient assumes UTF-8.
Please excuse my lack of knowledge on numerical character references. I want to preserve   or   as   or  . Currently, as an example,   will output into my resulting file as a space, but when the resulting xsl file is used to transform the xml file to FO it prints out a bad character "E". I have nailed down the issue to when I convert my stylesheet into one.
Michael Kay Saxonica
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] How can I preserve ASCII , Philip Vallone | Thread | [xsl] [XPath 3.0] Partial function , Costello, Roger L. |
Re: [xsl] How can I preserve ASCII , G. Ken Holman | Date | [xsl] [XPath 3.0] Partial function , Costello, Roger L. |
Month |