[r6rs-discuss] XML line endings
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. So even if one of
the styles is the default, there needs to be a name for the other one.
And I agree with John Cowan that the default should have a name.
Received on Mon Nov 20 2006 - 19:39:51 UTC
This archive was generated by hypermail 2.3.0
: Wed Oct 23 2024 - 09:15:00 UTC