Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 53571 invoked from network); 17 Oct 2000 14:44:22 -0000 Received: from unknown (HELO onclave.com) (208.249.126.103) by locus.apache.org with SMTP; 17 Oct 2000 14:44:22 -0000 Received: from vader [151.204.64.182] by onclave.com with ESMTP (SMTPD32-6.03) id A7454429022A; Tue, 17 Oct 2000 10:50:45 -0400 From: "Per Kreipke" To: Subject: RE: HTML inside XML Date: Tue, 17 Oct 2000 10:40:59 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <39EB8DC1.4D690EE4@link.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N You should be able to simply enclose the HTML inside a CDATA section. XML allows marked off portions of text. The sections are marked off with PCDATA (parsed canonical data) or CDATA (unparsed canonical data). Simply surround your text section like this: text here ]]> Per. > -----Original Message----- > From: Jimi Thompson [mailto:jthompson@link.com] > Sent: Monday, October 16, 2000 7:23 PM > To: cocoon-users@xml.apache.org > Subject: Re: HTML inside XML > > > Andy, > > I'm new at this myself, so that may well be the blind leading the blind, > but there is a way to turn off parsing for a portion of the document, > which I think will solve your problem. You DON'T want the email parsed > (if I am understanding this correctly). I will try to find out what it > is, but I think I saw a note about it in the W3C specs. Until I can > locate this and see if it applies to you, you might try looking at > XML.org because I think I might have see that there too. > > Sorry I'm not more help, > > Jimi > > Andy Parker wrote: > > > I've been reading through the archives in order to see if > > this question has been answered before, but I haven't been > > able to find it, so here goes. > > > > I'm trying to get an XSP page to display the contents of an > > email message. The problem occurs when the email isn't in > > just a normal plain text form. If the email is in HTML I > > can't get it to send the HTML out to the requesting client > > without altering the HTML. > > > > I've tried: > > > > message.getContent() > > > > But then it converts all < and > to < and > > > > > So then I saw someone suggest using util:include-expr, which > > I tried and gave the error unknown function valueOf(or > > something like that). > > > > So then I tried something with parsing the > > message.getContent string into nodes and inserting them into > > the document. I don't remember the code for that but it was > > covered in a thread in the archives. This caused the XML > > parser to complain that META needs to be closed. Of course, > > HTML usualy isn't valid XML so it won't work this way. > > > > I've also tried inserting a CDATA section into the document > > with the createCDATASection function of > > org.apache.xerces.dom.Document class. This does the same > > things as the one. > > > > I looked into the util taglib and saw util:expr, and decided > > why not? what can it hurt. So I tried that: > > > > message.getContent() > > > > which outputs > > > > message.getContent() > > > > So does anyone have any suggestion how I can, in essence, > > pass some data within the document all the way out without > > the XML parser(Xerces) trying to parse it? > > > > Thanks for listening to my rambling, > > Andrew Parker > > -- > Jimi Thompson > Web Master > L3 communications > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org > For additional commands, e-mail: cocoon-users-help@xml.apache.org > >