- From: Tim Bray <tbray@textuality.com>
- Date: Mon, 16 Sep 1996 08:15:33 +0000
- To: w3c-sgml-wg@w3.org
At 02:02 PM 16/09/96 GMT, Gavin Nicol wrote: >><p> >>Text of p. >></p> >> >><p>Text of p.</p> > >My understanding is that these would return *different* parse >results. We could (if it is so desired) make it an application >convention to strip leading and trailing whitespace. I agree. <p>Listen to my heart beat.</p> would *not*, in this cenario, be the same as <p> Listen to my heart beat. </p> Is this a problem? It's certainly easy to explain. With the proper SGML declaration, they will also parse differently in SGML. The SGML setup makes it easy to set markup apart with whitespace, making it easily visually distinguishable. This is good. The price is that it becomes difficult for ordinary people to tell when some white space is actually data. This is bad. The trade-off is probably reasonable, but XML need not choose the same trade-off. Cheers, Tim Bray tbray@textuality.com http://www.textuality.com/ +1-604-488-1167
Received on Monday, 16 September 1996 11:17:20 UTC