Re: [xsl] Namespace Identifiers - URI, URN, URL?

Subject: Re: [xsl] Namespace Identifiers - URI, URN, URL?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 29 Aug 2001 13:59:25 +0100
> No.  Just be sure your document uses only UTF-8 characters if you
> don't put it, because that's the default character set defined by the
> XML Recommendation.  Any non-UTF-8 character sequences in your XML
> document (such as extended ASCII/ISO-8859-1 characters) will cause
> your XML document to become invalid, and hence unparseable by any
> conformant XML parser. 

That's a slightly confusing reply. "UTF-8  characters" includes all of
Unicode (it's a universal format: that's what the U is for). In
particular all latin-1 (ISO-8859-1) characters may be encoded in UTF-8
(but with a different encoding to ISO-8859-1.


> It's better to put the XML declaration in and
> explicitly state the character set you use, e.g.:
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> or
> 
> <?xml version="1.0" encoding="US-ASCII"?>

If you use UTF-8 or UTF-16 then every XML parser will accept your
document. If you specify any other encoding, including either of those
two, then an XML parser may reject your document, as it is unspecified
which encodings an XML parser may accept, other than UTF8/16.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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


Current Thread