cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <va...@reverycodes.com>
Subject Re: Streaming strings in JXTemplate
Date Thu, 12 May 2005 11:54:50 GMT
Leszek Gawron wrote:
> Leszek Gawron wrote:
> 
>> Daniel Fagerstrom wrote:
>>
>>> If you want to make it even simpler we could either have another 
>>> instruction that parses strings to SAX, or have some attribute on 
>>> jx:out for parsing the argument.
>>
>>
>> <jx:out value="${str}" xmlize="true"/> ? Almost one liner.. some users 
>> also asked about it long time ago.
>>
>
> or even better: <jx:out value="${str}" xmlize="true" strip-root="true"/>

xinclude has parse attribute:

   <jx:out value="${str}" parse="xml"/>

where parse is either "text" or "xml".

Vadim

Mime
View raw message