Sylvain Wallez wrote:
Wow, thanks for this tidbit. I had not run across this action.
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
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]
