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

Re: Re: Character 150 withs Windows-1252 output

Subject: Re: Re: Character 150 withs Windows-1252 output
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Fri, 21 Apr 2006 13:20:17 +0100
windows 1252 lookup table
On 4/21/06, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> > Reading around a bit 150 is a control character... so does
> > that mean it shouldn't appear in source XML document
> > (unresolved) where the encoding is specified as ISO-8859-1 ??
> I believe that in the ISO standard ISO 8859/1, the control blocks C0 and C1
> (which includes 150) are unused - they are not part of the character set.
> However, according to Wikipedia [1], "the character map ISO_8859-1:1987,
> more commonly known by its preferred MIME name of ISO-8859-1 ... assigns
> C0 and C1 control characters to the code values 00-1F, 7F, and 80-9F.
> The XML recommendation defines encodings in terms of their IANA definitions
> not their ISO definitions, so on that basis ISO-8859-1 does include the
> control character 150.
> In XML 1.1, there is a requirement that C0 and C1 characters (with obvious
> exceptions such as TAB) must be represented as character references. This
> primarily to catch the common error where a Windows 1252 file is
> as ISO-8859-1.
> [1] http://en.wikipedia.org/wiki/ISO_8859-1

Thanks for the info.  Based on that, given this stylesheet:

<xsl:stylesheet version="1.0"
<xsl:output encoding="ISO-8859-1" method="xml"/>
<xsl:template match="/">

The output differs between MSXML 3/4, Saxon 6.5.4 and Saxon 8.7.1.
The latter escapes the character back to #150, while the 3 xslt 1.0
processors all output the character itself.

I'm guessing this is due to xml 1.1 support in Saxon 8.7?

Current Thread


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.
First Name
Last Name
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.