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

Re: ISO-8859-1 encoding and XmlDecl omision (was Re: L

Subject: Re: ISO-8859-1 encoding and XmlDecl omision (was Re: Looking up keys in a separate xml file)
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 6 Jan 2004 16:02:12 GMT
iso 8859 1 encoding xhtml
  is invalid. ISO-8859-1 is a subset of UTF-8 and should cause no problems
  since most parsers default to UTF-8 if the XML declaration is ommited.

All parsers default to utf8 in the absence of a declaration and
byte-order mark, that is specified by the XMl rec.
However ISO-8859-1 is not a subset of utf8, the first 127 (ASCII) slots
are the same but the upper half of latin 1 is encoded in ISO-8859-1
as single bytes, which will cause fatal errors if interpretted as utf8,
where those characters require two bytes in the encoding.

  I believe the only constraint when using
  the XML output method is that the result must be a general parsed
  entity.

yes, but a general parsed entity in ISO-8859-1 encoding must have an
encoding declaration to be well formed. XSLT does not distinguish
between an xml declaration and a text declaration, the only difference
is the standalone attribute anyway).


David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.