OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] UTF-8+names

[ Lists Home | Date Index | Thread Index ]

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@metalab.unc.edu
   Processing XML with Java (Addison-Wesley, 2002)
   http://www.cafeconleche.org/books/xmljava
   http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS