cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Joseph <pjoseph...@yahoo.com>
Subject RE: how to display html?
Date Fri, 22 Oct 2004 15:56:56 GMT
Thanks Helma!
--- H.vanderLinden@MI.unimaas.nl wrote:

> Hi,
> 
> > DOM is the Document Object Model, and it is part
> of Java's way of 
> > handling XML. It is an object that represents XML
> as tree 
> > structures in memory.
> 
> the syntax would roughly be (absolutely not ok to
> just copy, paste and use):
> 
> Document doc = new Document();
> doc.createElement("a");
> a.createAttribute("href");
> href.setValue("http://www.yahoo.com");
> a.setValue("http://www.yahoo.com");
> 
> > The other thing to be wary of here is that, if you
> give people the 
> > freedom to put what they want into a box like
> that, they can 
> > go breaking things quite badly if you don't
> validate the input that they 
> > are putting in.
> 
> This is the underlying issue. First figure out if
> you really want them to do
> such things.
> If you do, is it an option to add a separate set of
> fields for them to add
> links (which then solves your problem).
> And if separate fields are not an option, try to
> figure out how the HTMLarea
> sample handles these issues.
> Finally: would it help to put the data between
> CDATA[ ] tags?
> 
> Bye, Helma
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail:
> users-help@cocoon.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message