[ 
http://issues.apache.org/jira/browse/JELLY-191?page=comments#action_57542 ]
     
Paul Libbrecht commented on JELLY-191:
--------------------------------------

Although that doesn't append, I think the following scripts shows the wished 
output so that blank-management is possible with the help of the trim attribute.
The only thing that'd be left would be to add an append flag to the Tag, seems 
quite easy.

paul

<?xml version="1.0" encoding="utf-8" ?>
<jelly xmlns="jelly:core" >
<new var="sections" className="java.util.LinkedList"/>
<new var="sec1" className="java.util.LinkedList"/>
<mute>${sec1.add('sleeping')}
${sec1.add('dreaming')}
${sec1.add('eating')}
${sections.add(sec1)}
<new var="sec2" className="java.util.LinkedList"/>
${sec2.add('working')}
${sec2.add('stressing')}
${sec2.add('firing')}
${sections.add(sec1)}</mute>

<forEach var="section" items="${sections}" trim="false">[GOALS_section]
<forEach var="idea" items="${section}">${idea}
</forEach>
</forEach>
</jelly>

> FileTag must allow to append to flat file
> -----------------------------------------
>
>          Key: JELLY-191
>          URL: http://issues.apache.org/jira/browse/JELLY-191
>      Project: jelly
>         Type: Improvement
>   Components: core / taglib.core
>     Versions: 1.0-beta-4
>     Reporter: Marc DeXeT
>     Priority: Minor

>
> Core FileTag allows to write only XML or HTML content to file.
> But there's a need to write flat content unix-like or in pseudo-xml (element 
> collection without document root).
> So FileTag must allow to write flat content to file.
> Proposition to add a boolean "flat" property.
> There also a need to add "append" property to.. append to existing file :)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to