|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: FW: XML Mail
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. Jonathan Borden http://jabr.ne.mediaone.net > > 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 <tdarugar@b...> and > Jonathan Borden <jborden@m...> 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... > > Best, > > Clark > > XML, it's not just for computers anymore. 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/ and on CD-ROM/ISBN 981-02-3594-1 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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








