W3C home > Mailing lists > Public > xml-dist-app@w3.org > October 2000

Re: Removal (Time for XMail?)

From: Fredrik Lundh <fredrik@pythonware.com>
Date: Mon, 2 Oct 2000 12:02:11 +0200
Message-ID: <03f001c02c58$0181ec90$0900a8c0@SPIFF>
To: <xml-dist-app@w3.org>
Ed wrote:
> Even if you knew in advance how many CDATA delimiters your data 
> contained, this wouldn't work because the data itself contains markup 
> (]]>) that wouldn't be passed along to the application. That is, what 
> you're indicating as "data]" has an imbedded "]]>").

Sorry, I don't get it.  With the encoding I described, the parser passes
a number of CDATA sections to the application.  In the simple case (one
embedded ]]>), the application gets one section ending with "]", and
another starting with "]>".  With Bill's alternate encoding, it gets three
sections (CDATA followed by character data followed by CDATA).

> However, MIME allows for encodings of binary formats where you couldn't
> be predict where such markup (]]>) would appear.

There's no need to predict anything -- just put CDATA delimiters around
the whole thing, and encode embedded ]]>'s when you see them...

What am I missing?

Received on Monday, 2 October 2000 06:05:07 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 22:01:10 UTC