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

Re: Re: Production 78 / Process failure in XML 1.1


failure in xml
Elliotte Rusty Harold wrote:

> At 3:49 PM +1100 11/11/03, Rick Jelliffe wrote:
>
>> So the argument against literal C0 characters is that inband control 
>> characters
>> are transmission artifacts that have no place literally in data. Use 
>> references
>> to get the character but escape the control semantic.
>
> There's also the argument that C0 controls may accidentally control 
> something. There are still a few old printers here and there that will 
> break a page on a form feed. There might even be some gateways that 
> use the C0's for other purposes. 

I know of people still using serial terminals (perhaps with Xon/Xoff.) 
In Taiwan one
place that had computerized early had terminals, because their 
mainframes used character
sets that terminal emulation programs did not accept. They cannot must 
wait till
their mainframe applications become obsolete before they get rid of 
them. (But they
are not sending XML anyway.)  Modems still sometimes use Xon/Xoff, but 
because
people run PPP etc rather than sending files directly, control 
characters in data
is now not a problem for serial comms AFAIK. If XML just uses application/
then I think there is no RFC problem with literal controls.

Mislabelled UTF-16 encodings will always be detected in XML, because the 
presence of
the 0x00 bytes and/or BOM*

In UTF-8, all the bytes for characters > U+007F are bytes > 0x7F, so 
again this
will be detected.

Cheers
Rick Jelliffe

* The only exception I can think of is if we have
 - an external parsed entity in UTF-16
 - with no encoding header defaulting to UTF-8 or html's 8859-1
 - which has only data and no markup
 - and no ASCII/Latin1 data including spaces (these would cause a 0x00 
byte),
 - and whose UTF-16 bytes also correspond to a valid UTF-8 or 8859-1 
patterns,
 
Except for monkeys typing XML, data usually has meaning; so most potential
strings never in fact could appear, which may lessen this edge case anyway.



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.