Re: R: Multiple output files with multiple data
"Daniel Dekany (temporary acc!)" <[email protected]> Tue, 14 Oct 2003 15:08:57 +0200
| Newsgroups | gmane.comp.text.fmpp |
|---|---|
| Message-ID | <[email protected]> |
Tuesday, October 14, 2003, 12:11:45 PM, Leonardo Francalanci wrote:
>> A possible solution is that you rather use a single-big XML file, an
>> then iterate over the entries stored in that, but you do it by
>> including the small XML files into the big XML file with XML's
>> <!ENTITY ...> stuff.
>
> Nahhh ;)
>
>> Another solution is to query the names of the available *.xml files
>> with an user defined FreeMarker directive (or load the list of files
>> from some other data source), and then use <@pp.loadData ...> to load
>> an xml file in each loop.
>
> yes ,I can do it
>
>> However, the question arises for me, wether in your case (which I
>> don't exactly know), XML files should act as the source files
>> ("templates", not as data), and there should be an "XML"
>> processing-mode, that uses an FTL template to render the XML...
>> something that FMPP does not support yet.
>
> yes, what I want to do is a kind of replacement of the XSL with FMPP.
> I don't like XSL, and I have a lot of XML data files to transform. I
> think something like that (multiple XML -> multiple outputs given a
> template) should not be tricky to implement, and would be very useful.
You *think* that it is not tricky :), but I guess it will require some
deeper rethink (generalization) of the FMPP architecture (*if* it will
fit into it nicely in any way at all). And, the problem is that
currently I'm in the middle of another serious redesign (regarding TDD
and FMPP configuration files), so... I add this to the TODO file and I
will think about it later.
BTW, there is a bare-bone Ant task that was specifically made as
FreeMarker "style" task, so its approach may fits better what you want.
But I do not know it too much... It's the Ant task comes with the
FreeMarker distribution.
--
Best regards,
Daniel Dekany
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php