cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: Streaming strings in JXTemplate
Date Thu, 12 May 2005 12:26:41 GMT
Ugo Cei wrote:
> Il giorno 12/mag/05, alle 14:08, Leszek Gawron ha scritto:
> 
>> what do we do with
>> <jx:out value="<root><tag>broken</mispelledtag></root>"
parse="xml"/>
>>
>> 1. generate SAX events - if value is invalid this breaks the whole view
>> 2. parse to DOM, catch exceptions, use @lenient to throw or silently 
>> omit.
> 
> 
> Either 1 or give users a choice. Defaulting to DOM might be too 
> resource-intensive.
What if @lenient="true" then and only then parse to dom to avoid view 
exceptions?

-- 
Leszek Gawron                                      lgawron@mobilebox.pl
IT Manager                                         MobileBox sp. z o.o.
+48 (61) 855 06 67                              http://www.mobilebox.pl
mobile: +48 (501) 720 812                       fax: +48 (61) 853 29 65

Mime
View raw message