Chris Hanson wrote:
> Per Bothner wrote:
>> Chris Hanson wrote:
>>> I note that the standard eol-styles do not include anything suitable
>>> for reading XML documents. XML 1.0 allows any of LF, CR, or CRLF on
>>> input. XML 1.1 additionally allows NEL (U+0085), CR-NEL, and U+2028.
>>> Parsers are required to recognize any of these styles.
>>>
>>> I suggest that it would be useful to provide standard names for these
>>> styles, but not to require their implementation.
>> I'm not sure we need a name for this, since allowing any of these
>> line endings should be the default behavior.
>
> But I mentioned two _different_ styles -- which do you think should be
> the default? (My vote would be for the XML 1.1 behavior.)
>
> If someone sends me an XML document, it could be either version 1.0 or
> 1.1 (or even later), so I the parser needs to be able to set the eol
> style to the right value for the document's version.
Why? Just set it to allow all the 1.1 encodings. Unless I guess
you're in anally-reject-anything-not-strict-xml-1.0-mode ....
--
--Per Bothner
per_at_bothner.com http://per.bothner.com/
Received on Mon Nov 20 2006 - 19:46:25 UTC