On 11/03/2011 10:24, Philippe.Favrais@continental-corporation.com wrote:
Hello Michael

I tried it but it creates anyway the output file but really empty this time ( i mean without  <?xml version="1.0" encoding="UTF-8"?> )

In my test, it created no output file. I don't know what you did differently.

As i want not create the file, do you know if it is possible from my XSL to get the value of  parameter -o: which is given in the saxon command line. Thus, I could use it  in <xsl:result-document href=""/> and control when i want to generate my output.

If you omit the href attribute, or set it to an empty string, the output will be written to the file specified in the -o: option.

If you want to determine the value that was supplied, you'll need to write an extension function: it's accessible as context.getController().getBaseOutputURI().

Michael Kay