[oXygen-user] xsl:result-document and Saxon-SA gives "Cannot write to a URI that has already been read"

Andrew Welch
Thu Jun 25 07:06:34 CDT 2009

Hi George,

> When you specify as XML input ${currentFileURL} for the transformation that
> will be resolved to the stylesheet location, as that is the current file
> when you run the transformation.
> If there is no output specified oXygen sets on the output stream a system ID
> (to have eventual references to images for instance resolved correctly in
> the XHTML preview) and uses the stylesheet location for that. But as the
> stylesheet is set also as input Saxon complains that it cannot write to that
> location.

Thanks for the explanation

> We get however the same behavior for both Saxon B and Saxon SA in oXygen.

Yeah me too now, my Saxon B scenario had a different xml file set...
sorry about that.

> If you do not need an input for the transformation then use the advanced
> processor options in the scenario to set initial template/initial mode for
> the transformation.

Ahh ok cool, I didn't notice that.... thanks.

Andrew Welch
Kernow: http://kernowforsaxon.sf.net/

More information about the oXygen-user mailing list