Lists Home |
Date Index |
- From: "Borden, Jonathan" <firstname.lastname@example.org>
- To: "XML Dev" <email@example.com>
- Date: Tue, 23 Feb 1999 21:03:47 -0500
I have modified XMTP to wrap non text/xml bodies in <![CDATA[ sections. The
problem with text/html is that it is not required to be well-formed ... that
is there may be missing start and or end tags ... for this reason the
correct way to convert text/html sections into XML is to either escape or
CDATA wrap the section.
text/xml sections need not be wrapped.
if you see http://jabr.ne.mediaone.net there are instructions on several
XMTP (XML E-mail) demos so that you can test these concepts yourself.
BTW: ]]> is not an acceptable transformation for ]]> within a CDATA
section because this is interpreted literally as ]]>, John Cowan's
suggestion of converting ]]> into ]]]]><![CDATA[> is the one I have adopted.
so, XMTP *does* recognize markup, as either XML by virtue of the
content-type: text/xml or as text containing lots of < and > to be escaped.
> Sorry to revive a dead thread, but I'm making progress
> on the subject, so I'd like your feedback.
> To which David Megginson wrote:
> > Wrong -- or, to put it differently, it should leave content with
> > text/html and text/xml alone, but it should not try to recognise
> > markup in text/plain.
> Then, Parand Tony Darugar <firstname.lastname@example.org> and
> Jonathan Borden <email@example.com> posted their
> current implementations of such a monster.
> The debate then swung as to how to treat the "body"
> of the e-mail. Most people agreed that it was some
> sort of CDATA thing, where "]]>" in the text body
> would become "]]>"
> My question:
> Isn't there a way to do smart stuff like #2 ?
> For example, look at Didier's post below.
> It'd be slick to have the XMLMail program
> recognize his markup.
> For my example, I'd like to "embeed" bookkeeping
> information in my e-mail. If the e-mail leaves
> the 'organization', the bookkeeping is stripped.
> Then I can run all of my e-mail through my
> journal, which then hits my ledger, and accounts
> for my time appropriately. I'm actually very
> serious about this...
> XML, it's not just for computers anymore.
xml-dev: A list for W3C XML Developers. To post, mailto:firstname.lastname@example.org
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:email@example.com the following message;
To subscribe to the digests, mailto:firstname.lastname@example.org the following message;
List coordinator, Henry Rzepa (mailto:email@example.com)