[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Output encoding us-ascii and character references

Subject: RE: Output encoding us-ascii and character references
From: "Houghton,Andrew" <houghtoa@xxxxxxxx>
Date: Thu, 3 Dec 2009 12:35:56 -0500
RE:  Output encoding us-ascii and character references
> From: Martin Honnen [mailto:Martin.Honnen@xxxxxx]
> Sent: Thursday, December 03, 2009 12:33 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Output encoding us-ascii and character references
>
> 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.

Doh... that's what I get for copying the xsl:output from another
transform and just changing the encoding. Sometimes you can stare
at something and never really see the problem.  Thanks, much.

Andy.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.