cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: Why does XSPMarkupLanguage wrap text in xsp:text?
Date Mon, 06 Jun 2005 14:19:44 GMT
Jochen Kuhnle wrote:
> I noticed that XSPMarkupLanguage.characters wraps text in 
> xsp:text elements. Is there a reason for this? At least my XSPs work 
> without this...

This logic has been there since beginnings of Cocoon2 XSP implementation [1] 
(line 134), and I'd suggest leaving it there as logicsheets might be dependent 
on this.

I guess original idea was that text() nodes can be safely ignored, while 
xsp:text nodes are meaningful. It might be still true, haven't digged deeper...

Vadim

[1] 
http://cvs.apache.org/viewcvs.cgi/cocoon-1/src/org/apache/cocoon/components/language/markup/xsp/XSPMarkupLanguage.java?rev=1.1.2.1&only_with_tag=xml-cocoon2&view=markup

Mime
View raw message