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

RE: An XML document is not well-formed if encoding="..." does

  • From: "G. Ken Holman" <gkholman@CraneSoftwrights.com>
  • To: "xml-dev@lists.xml.org" <xml-dev@lists.xml.org>
  • Date: Sat, 29 Dec 2012 10:58:22 -0500

RE:  An XML document is not well-formed if encoding="..." does
At 2012-12-29 14:38 +0000, Costello, Roger L. wrote:
>Is the solution to the problems to simply 
>eliminate the need for conversions by mandating 
>that every application, every IDE, every text 
>editor, and every system worldwide adopt one 
>character encoding, UTF-8? It that a realistic 
>solution? If so, what is the timeframe in which it could be achieved?

Imposing or recommending mandates should only be 
done for interfaces and exchanges.  Why impose 
constraints on what people are doing in their own 
world after a file has been exchanged?  Preaching 
good practice is far better (and more palatable) 
than mandating what people should be doing in their own environment.

Note that the UBL committee has been mandating 
explicit indication of the character set (rather 
than assuming any default encoding or any 
higher-level protocol) for a while because the 
specification is for the reliable interchange of information:

   http://docs.oasis-open.org/ubl/prd2-UBL-2.1/UBL-2.1.html#CHARACTER-ENC

   [IND2] All UBL instance documents MUST identify their
   character encoding within the XML declaration.

UBL then goes one step further by recommending 
(using "SHOULD") that that encoding which is used 
be UTF-8 because of an interoperability decision 
made between international standards organizations:

   [IND3] In conformance with ISO IEC ITU UN/CEFACT eBusiness
   Memorandum of Understanding Management Group (MOUMG) Resolution
   01/08 (MOU/MG01n83) as agreed to by OASIS, all UBL XML SHOULD
   be expressed using UTF-8.

I grant this is only a strong recommendation 
rather than a mandated requirement, but the 
committee has tried to bring these issues to 
light for users who may be naïve of the 
situation.  At least by mandating the encoding= 
in the XML declaration, there are no assumptions 
about defaults that might be different between 
trading partners.  When the naïve users follow 
the published constraints then this particular problem is avoided.

. . . . . . . . Ken


--
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm
Crane Softwrights Ltd.            http://www.CraneSoftwrights.com/x/
G. Ken Holman                   mailto:gkholman@CraneSoftwrights.com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers:    http://www.CraneSoftwrights.com/legal



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.