W3C home > Mailing lists > Public > xml-editor@w3.org > October to December 2003

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

From: Elliotte Rusty Harold <elharo@metalab.unc.edu>
Date: Wed, 22 Oct 2003 09:17:59 -0400
Message-Id: <p06002008bbbc32627620@[192.168.254.4]>
To: John Cowan <cowan@mercury.ccil.org>, David Carlisle <davidc@nag.co.uk>
Cc: xml-dev@lists.xml.org, xml-editor@w3.org

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
Received on Wednesday, 22 October 2003 09:34:55 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 23:39:46 UTC