W3C home > Mailing lists > Public > w3c-sgml-wg@w3.org > December 1996

Re: RS/RE, again (sorry)

From: <lee@sq.com>
Date: Wed, 11 Dec 96 16:26:45 EST
Message-Id: <9612112126.AA11126@sqrex.sq.com>
To: w3c-sgml-wg@w3.org, tbray@textuality.com
It seems to me that the best thing, if it is possible, would be
* the XML parser can pass all whitespace back to the application
* the distinction between data and whitespace is retained, so that it is
  not an error to have whitespace in element content, even though that
  whitespace is passed back to the application.
* RS and RE and space and tab and the places where comments were before
  they were elided are all whitespace

It's important to be careful about what "significant" means.
[1] whether the parser discards it
[2] whether it is treated as #PCDATA
[3] whether it is recognised as S in a production

I do not suggest making all whitespace be PCDATA and losing the distinctioon
between whitespace and data.

Hence, I favour

3. Add language to the spec allowing the application to force the 
   processor to pass through all [whitespace] regardless of the -XML-SPACE

in conjunction with removing the -XML-SPACE setting.

Received on Wednesday, 11 December 1996 16:27:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:20 UTC