cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amit Kaushik" <smartkaus...@yahoo.co.uk>
Subject Re: HTML formatting by cocoon parser
Date Thu, 23 Nov 2000 20:17:56 GMT
that disable-output-escaping thing is not working.it's giving me same
problem.I think that cocoon is using xalan if it is then why this thing is
not working.

Amit
----- Original Message -----
From: Robin Green <greenrd@hotmail.com>
To: <cocoon-users@xml.apache.org>
Cc: <smartkaushik@yahoo.co.uk>
Sent: Friday, November 24, 2000 1:42 AM
Subject: Re: HTML formatting by cocoon parser


> "Amit Kaushik" <smartkaushik@yahoo.co.uk> 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.....
> >
> ><p>My name is &lt;b&gt; Amit Kaushik &lt;/b&gt;</p>
> >
> >when cocoon parse it it gives me this string.
> >
> >My name is <b> Amit Kaushik </b>
> >
> >while i want a output in an HTML format like after parsed by cocoon it
> >display "Amit Kaushik" in bold letter without displaying <b> and </b>
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


Mime
View raw message