[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML and whitespace: lets just dump CR and LF!

  • From: Peter@u... (Peter Murray-Rust)
  • To: xml-dev@i...
  • Date: Wed, 06 Aug 1997 16:12:53 GMT

xml cr lf
In message <199708051317.XAA23619@j...> "Rick Jelliffe" writes:
[...]
> 
> I suggest that the following approach should be taken. (I think it is the only
> realistic solution, especially if we assume that 1) 
> data is usually generated by applications, 
    Although this will be partly true, I think we still have to expect people
to use text editors for a year or two yet :-). [It's how I create most of
my XML at present :-)].

> 2) humans only check and tweak data;
Yes.  XML must certainly be tweakable. So it mustn't have to have lines 1000 
chars long :-)

> 3) we want operating system 
> and character set independence, 

critical :-)

4) line-breaking is generally done by clients
> ...so CR/LF is basically a convenience for fitting data into editors, 
> not for the purposes of output.)

Yes.

> 
> **A) XML applications should ignore *ALL* CR and LF as a bad joke.  They should
> be entirely there for formatting the raw text into nice, eye-sized records.
> So CR and LF should never be converted to spaces. (This approach was the
> one taken by Interleaf, and I have come to appreciate it.) If you need a 
> space, then start the new line with it!  (Ending the previous line is difficult
> to see.)

Appeals to me :-)

> 
> **B) XML applications should mandate the use of the unambiguous Unicode characters
> 	-- LINE SEPARATOR  &#x2028;
> 	-- PARAGRAPH SEPARATOR &#x2029;
> 
This makes sense unless someone finds a flaw in it...

	P.


-- 
Peter Murray-Rust, domestic net connection
Virtual School of Molecular Sciences
http://www.vsms.nottingham.ac.uk/

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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.