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 4951 invoked from network); 23 Nov 2000 20:12:49 -0000 Received: from f87.law4.hotmail.com (HELO hotmail.com) (216.33.149.87) by locus.apache.org with SMTP; 23 Nov 2000 20:12:49 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 23 Nov 2000 12:12:23 -0800 Received: from 148.88.0.10 by lw4fd.law4.hotmail.msn.com with HTTP; Thu, 23 Nov 2000 20:12:23 GMT X-Originating-IP: [148.88.0.10] From: "Robin Green" To: cocoon-users@xml.apache.org Cc: smartkaushik@yahoo.co.uk Subject: Re: HTML formatting by cocoon parser Date: Thu, 23 Nov 2000 20:12:23 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 23 Nov 2000 20:12:23.0826 (UTC) FILETIME=[B1347720:01C05589] X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N "Amit Kaushik" wrote: >Hi everybody, > >I have a problem with cocoon parser.In my DTD file i have an entity "p" of >type #PCDATA.In my XML file i can put this line in to this tag..... > >

My name is <b> Amit Kaushik </b>

> >when cocoon parse it it gives me this string. > >My name is Amit Kaushik > >while i want a output in an HTML format like after parsed by cocoon it >display "Amit Kaushik" in bold letter without displaying and tag. That's not a parser problem - that's just how CDATA works in XML. If you were using Xalan alone you could just use disable-output-escaping, but Cocoon doesn't support this. But wouldn't it be simplest to just alter your DTD? Note that it is often a security risk to allow users to enter any tags they want, believe it or not, so it's best to restrict the tags to a small predefined set - so you can just put that set of tags in your DTD. _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com