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

Re: UTF-8+names


utf 8 line break
At 7:05 AM -0400 10/22/03, John Cowan wrote:


>XML 1.1 is almost certainly going to ban line breaks in the XML and text
>declarations altogether.  They don't buy anyone anything.

It might affect people who are wrapping to a specific line length, 
especially if they have a longish encoding name.

I can see that this might have been a good idea in XML 1.0. It would 
have made writing a parser simpler. In particular, you could have 
just detected the encoding, and then scanned for the first line break 
before parsing the XML declaration.

However, I don't see the benefit of doing it in 1.1 since parsers 
already have the code to handle line broken XML declarations. Making 
an additional distinction between 1.0 and 1.1 will just make parsers 
a little harder to write since they'll need to special case this 
depending on version. I suspect parsers will use the more complicated 
XML 1.0 algorithm for finding the end of the XML declaration, and 
then just report an error if they see a line break when 
version="1.1". The horse has left the barn on this one.

In either case, I assume you're planning to go back to last call 
then? I don't see anything about this in the candidate recommendation.

-- 

   Elliotte Rusty Harold
   elharo@m...
   Processing XML with Java (Addison-Wesley, 2002)
   http://www.cafeconleche.org/books/xmljava
   http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA

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.