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

Re: Whitespace

  • From: dgd@c... (David G. Durand)
  • To: xml-dev@i...
  • Date: Tue, 26 Aug 1997 10:44:04 -0500

c xmldata preserve whitespace
At 9:26 AM -0500 8/26/97, Sean Mc Grath wrote:
>[David Durand]
>My counter argument (not reproduced above) *followed* the sentence you *have*
>reproduced. A lovely example of how quoting....

I knew that I should have held my fingers (but hit send too soon).
Apologies for implying that you are not trying for understanding.

>Here is a concrete scenario that either illustrates the problem or
>illustrates my ignorance.
>
>I want to know how two XML applications that apply different
>WS conventions can inter-operate losslessly. Specifically, why is this
>scenario wrong? :-
>
>I wish to perform a null transformation across two editing tools App A and
>App B.
>
>foo.xml --> App A --> App B --> bar.xml
>
>I want foo.xml == bar.xml
>
>App A : reads foo.xml and treats WS according to APPA-WS-RULES
>        writes temp.xml
>
>App B : reads temp.xml and treats WS according to APPB-WS-RULES
>        writes bar.xml
>
>Result : foo1.xml != bar.xml

Editing tools that change whitespace are not preserving the XML data stream
that would be returned by a parser on the document. a Tool that works like
this is simply buggy, since it reads in data that would return one data
stream to applications, and produces output that would produce a different
stream.

On the current definition, even tools that normalize CRLF to LF are
potentially damaging the document. This last is the only poitn that worries
me much.

Editors are _not allowed_ to blindly apply application conventions, unless
they can _ensure_ that the document was created for, and will only be
processed by, that application.

The beauty of not having whitespace normalization is that it's easy to tell
if you've changed anything because the only way not to change it, is to
change nothing.

The only safe rule for an editor is to preserve whitespace just as it is,
unless it knows something about the DTD, or stylesheet, or if the author
requests special handling becuase she knows something about these.

  --- David

_________________________________________
David Durand              dgd@c...  \  david@d...
Boston University Computer Science        \  Sr. Analyst
http://www.cs.bu.edu/students/grads/dgd/   \  Dynamic Diagrams
--------------------------------------------\  http://dynamicDiagrams.com/
MAPA: mapping for the WWW                    \__________________________



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.