The solution was in my case to move the MyXML.ss to the /mysite/templates directory away from any themes folder.
Now the renderWith works fine in onBeforePublish().
In my opinion the issue is solved, thank you very much for your help.
Posted to: How do I use renderWith() outside a controller? | Show Thread | Post Reply