xsl-list
[Top] [All Lists]

Re: [xsl] Output encoding us-ascii and character references

2009-12-03 12:33:15
Houghton,Andrew wrote:
I'm using Saxon 9.1.0.7J with Java 1.6.0_17 64-bit and with or without Xerces 
2.9.1 under Vista and have an XSL 2.0 transform with:

<xsl:output method="text" media-type="text/plain" encoding="us-ascii" />

when I run the transform I get the following error:

Output character not available in this encoding (decimal 697)

I thought that when you specified us-ascii as an output encoding and a 
character was outside the encoding, then the XSL processor was suppose to 
render a character reference or was I dreaming?

But you have asked for text/plain, not for xml or html.
text/plain does not know any character references.


--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>