Hello, In an XSLT Filter using the function xsl:result-document, the filter works fine the first time it is launched; but, starting at the second time, it fails.
It works again (just one time) if one closes OpenOffice.org and then restarts it. It would seem xsl:result-document refuses to overwrite an existing file, but it would be strange since it is not the usual behavior of the function (outside of OOo); and the transformation works again if OOo is restarted, even if the target file of result-document is still there (it then gets overwritten). BUT, if the name of the target file for result-document changes at every execution (by appending the time in seconds to the filename, for example), the transformation succeeds every time, with no need to restart OOo. A possible explanation for this behavior would be that XSLT files are "precompiled" / cached in some way, and that every sucessive execution is in fact just one continuous execution: then, the transformation would refuse to write "twice" to the same file in the same execution. Is this interpretation correct? Is it possible to somehow circumvent it, for example by "resetting" the compiled XSLT, or preventing precompilation altogether? I'm using OOo 3.0 and Saxon 9. Regards, EB
