You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by cib <c....@laposte.net> on 2001/09/05 09:12:34 UTC

FileSavingEnvironment

Hi
I want to generate an xsl and save it to the disk.
I've found this in apidoc, but I've never done any java.
Can someone tell me where I must put this formula, and how to fill the
parameters.

public FileSavingEnvironment(java.lang.String uri,
                             java.io.File context,
                             java.util.Map attributes,
                             java.util.Map parameters,
                             java.util.Map links,
                             java.io.OutputStream stream,
                             org.apache.log.Logger log)
                      throws java.net.MalformedURLException
Let's say my xsl will be called first.xsl, and will be in
G:\Tomcat\webapps\cocoon\xml\test\styles
I don't know anything else.
I've read some of the java cocoon docs, but I don't know how to get the
stream output from the xsp that generates my xsl and send it to the
FileSavingEnvironment forrmula.
How can I tell it I want the old first.xsl to be overwritten?
Thanks for your help
Cib

France, Bordeaux, xml and gay pride.


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>