It looks to me as if you are now setting the base URI successfully, but the value of the href attribute produced by xsl:result-document is an empty string.

Michael Kay

On 09/09/2011 17:42, Kate Tang wrote:

This is the folder I want to write to.
The first output file output correctly. However, the others didn't. I am think if I should do more setting for the URI.

From: Michael Kay
To: Kate Tang
Sent: Fri Sep 09 12:22:52 2011
Subject: Re: [saxon] Help about saxon9he.jar
On 09/09/2011 16:14, Kate Tang wrote:

The following is what I got.



11:10:47,456 ERROR [STDERR] Error at xsl:value-of on line 33

  C:\messagepoint\reports\operationsReports\1\2\operationsReport_1_111031\output (Access is denied)

11:10:47,456 ERROR [STDERR]   at xsl:for-each (#29)

11:10:47,456 ERROR [STDERR]      processing /Report/Jobs[1]/Job[6]

11:10:47,458 INFO  [STDOUT] A1FC7D4E66DE26153DD37E623A47DF89 2011-09-09 11:10:47,456 ERROR,Thread-36:71 -  unexpected exception when invoking ExportOperationsReportToXMLService execute method

; SystemID: ; Line#: 33; Column#: -1

net.sf.saxon.trans.XPathException: C:\messagepoint\reports\operationsReports\1\2\operationsReport_1_111031\output (Access is denied)

Is C:\messagepoint\reports\operationsReports\1\2\operationsReport_1_111031\output

the file you were
intending to write to?

Do you have any idea why access to this file is denied?

It looks suspiciously to me as if this is the name of a directory rather than a "real" file, which would probably account for the error.

Michael Kay