Sean Mc Grath digitome at iol.ie
Tue Aug 19 12:12:07 BST 1997

>> Peter Murray-Rust wrote:
>>I think - along with TimB - that it is unrealistic to come up with s single
>>set of rules that will server every application.  There was an enormous
>>of discussion on the XML group last year and I take it as axiomatic that we
>>cannot produce a set of rules which everyone agrees are:
>>	- simple to state
>>	- unambiguous
>>	- intuitive and easy to learn
>>	- universal (i.e. cover every situation)

**Warning:** Rush of blood to the head follows. Get those flame throwers

I know this whole white space thing was trashed out at length some time ago but
it worries me greatly that on XML-DEV the whole issue seems to be as problematic
as it was before XML-Lang's rulings on whitespace handling where decided upon.
It seems that the problem was not really solved - just pushed up a layer:-)

It just sounds wrong to me that white space handling is to be the subject of
application conventions rather than part of the core XML parsing activity.

Anyway, I think everyone should be allowed over-simplify the "White Space
once in there lives! Here is my contribution:-

Ban mixed content. Mixed content is a markup minimization feature.

If you want a chunk of PCDATA in an XML doc, use the <PCDATA>
reserved element name.

   <pcdata>I am data 1</pcdata>
   <pcdata>I am data 2</pcdata>

<foo><pcdata>I am line 1</pcdata><pcdata>I am line 2</pcdata></foo>

If you need whitespace to be something other than whitespace- i.e. a
newline to be a real newline to be passed on to the application, use an
empty element type to represent it.

   <pcdata>I am data 1</pcdata><newline/>
   <pcdata>I am data 2</pcdata>

Give me five minutes to put on the asbestos suit and then you flame

xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa at ic.ac.uk)

More information about the Xml-dev mailing list