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

Re: Namespace Identifiers - URI, URN, URL?

Subject: Re: Namespace Identifiers - URI, URN, URL?
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 29 Aug 2001 13:59:25 +0100
urn url namespace
> 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

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.