Put the act in a match that somehow takes two parameters (request or other). One to denote the
source, the other to denote the target. Use the same strategy as before to 'xinclude' the result of
the acts, except that you don't do a writefiles transform afterwards...
If this is described too short for you, just say so and i'll try again.. ;)
Cheers
Lars Huttar wrote:
Sylvain Wallez wrote:
You can also use the copy-source action which handles sources as
binary streams. And architecturally speaking, it's a bit less ugly
than the source-transformer :-)
<map:act type="copy-source" src="cocoon://pipeline-that-creates-a.pdf">
<map:parameter name="dest" value="path/to/file.pdf"/>
</map:act>
Sylvain
Wow, thanks for this tidbit. I had not run across this action.
Somebody should put this in the documentation where it can be found
(http://cocoon.apache.org/2.1/userdocs/actions/actions.html) (I know, we
hear that all the time).
Looks like it's fairly new anyway.
Applying this to the task:
My task is to copy a directory tree of static files from one location to
another. The set of files should not be considered fixed.
The current approach is to generate a list of the fiels using
directory-generator, massage to add XInclude and Source-write markup,
and run the result through the XInclude and source-writing transformers.
If I were to do the copying with actions, I'd have to be able to "run" a
dynamically-generated list of actions.
Is there a way to do that?
Do I use flowscript?
Lars
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
[EMAIL PROTECTED]
IT-consultant at Daidalos BV, Zoetermeer (NL)
http://www.daidalos.nl/
tel:+31-(0)79-3316961
fax:+31-(0)79-3316464
GPG: 1024D/12DEBB50
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]