Hi Martin-
My advice would be to set up an ACL function that can take parameters,
set up the profiles and any other composition options, and invoke the
publish. Then you can call that function from the command line,
something like this:
editor -c "my_compose_with_profile('novice')" myfile.xml
If you are using 6.0, you may also be able to leverage publishing rules
for this purpose. I haven't done a lot of work with that yet, but it
seems like it should be helpful for situations like this. If there isn't
an obvious function in the docs for invoking a publishing rule, you
might have to poke around in the stock ACL code to find the function to
do it.
--Clay
Clay Helberg
Senior Consultant
TerraXML