commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc DEXET <Marc.De...@dsi.cnrs.fr>
Subject RE : [jira] Commented: (JELLY-191) FileTag must allow to append t o flat file
Date Fri, 07 Jan 2005 13:35:42 GMT
dion gillard (JIRA) wrote:
>      [
> http://issues.apache.org/jira/browse/JELLY-191?page=comments#action_57378
> ]  
> 
> dion gillard commented on JELLY-191:
> ------------------------------------
> 
> Huh? the file tag can write non-xml data. Just use the
> omitXmlDeclaration="true". What about that doesn't work? 

Oh yes it writes to flat file, no problem BUT...
I explain, imagine I want to create a POHMCF (Plain Old Hand Made Config
File) like
--------------
[GOALS_section_0]
sleeping
eating
dreaming

[GOALS_section_2]
working
stressing
firing
--------------

with a jelly template

<forEach var="section" items="${sectionList}">
[GOALS_section${section.id}]
	<forEach var="idea" items="${section.ideas}">
${idea}		
	</forEach>
</forEach>

You can't use core file tag, because of it generates
------------------
[GOALS_section_0]sleepingeatingdreaming[GOALS_section_2]workingstressingfiri
ng
-------------------

So.

The big work doesn't seem to be about core FileTag, it is around XMLOutput
and/or Writer used to stream out to file.
"flat" property would mean "Hey guy ! Don't miss space, preserve them !!"

Marc DeXeT
- because of CNRS is fun ! - 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message