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

Re: XML and Using It With Whitespace

  • From: Chris Smith <smith@i...>
  • To: Tim Bray <tbray@t...>
  • Date: Thu, 8 Jan 1998 21:40:31 -0500 (EST)

xml 32
On Tue, 6 Jan 1998, Tim Bray wrote:

> Date: Tue, 06 Jan 1998 18:56:52 -0800
> From: Tim Bray <tbray@t...>
> 
> Hmm, I'm failing to get some aspect of your problem.  Maybe I
> bypassed a message in which you explained it.  It is clear that
> *any* conformant parser must give you all the whitespace in the
> message.

The difficulty was not with insignificant whitespace, it was with
unwanted whitespace. For example, (old ground, I know, I'm sorry) if a
long line of text gets broken by changing a space to a lineend, then
message authentication will fail.

XML has done an admirable job with whitespace in element content, but
we were looking at a different problem. We wanted to try (where
possible) to rescue transport mechanisms, such as email, that
occasionally damage their content.

> Probably I'm missing something... what is the missing piece from
> your point of view? -T.

We were trying to save the world :-).

Notice I'm using the past tense?

In our conference call this morning, we finally decided we'd had
enough. Transport mechanisms that damage their content are broken.
Period. Fix the transport.

As a result, we have taken a different approach, one that draws rather
heavily on watching the parser work going on here. It essentially is:

- parse the document, using the DTD.
- generate a clean XML document (in UTF-16) from the parsed version
- run the authentication check on that

I'll post the definitive section of our spec in my next message.

Because the authentication is carried *inside* the XML document, the
whole document doesn't actually get authenticated. We authenticate any
one element (except, I suppose, the document element) which includes
an authentication of all content. You can include multiple
authentications, which may nest.

There are other complications, but I'd need to put in the whole spec.
Considering that XML essentially rescued our group from an encoding
stalemate, I'll post the press release (which I understand is coming
out on Monday.)

---------------------------------------------------------------------------
 Chris Smith                                          <smith@i...>



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto: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.