Hi

I am running a number of transforms concurrently.  When using Saxon 2 I get a 'net.sf.saxon.trans.DynamicError'.

In the code I am using a javax.xml.transform.Transformer.  It may be used repeatedly but never by more one thread at a time. 

The problem does not occur with Saxon 1 or with any other java xslt processor. The XSLT is immaterial...

regards

Matthew


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
    <xsl:template match="node() | @*">
        <xsl:copy>
            <xsl:apply-templates select="node() | @*"/>
        </xsl:copy>
    </xsl:template>
</xsl:stylesheet>



net.sf.saxon.trans.DynamicError: Cannot write an implicit result document if an explicit result document has been written to the same URI: file:/Users/dev/work/bkk/bruteprofilerXSLTImpl/s2/worker-7-1187620776001
    at net.sf.saxon.Controller.checkImplicitResultTree(Controller.java:497)
    at net.sf.saxon.event.ImplicitResultChecker.firstContent(ImplicitResultChecker.java:57)
    at net.sf.saxon.event.ImplicitResultChecker.startElement (ImplicitResultChecker.java:30)
    at net.sf.saxon.event.NamespaceReducer.startElement(NamespaceReducer.java:54)
    at net.sf.saxon.event.ComplexContentOutputter.startContent(ComplexContentOutputter.java:491)
    at net.sf.saxon.event.ComplexContentOutputter.characters(ComplexContentOutputter.java:136)
    at net.sf.saxon.instruct.Copy.processLeavingTail(Copy.java:164)
    at net.sf.saxon.instruct.Template.applyLeavingTail(Template.java :98)
    at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:317)
    at net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:187)
    at net.sf.saxon.instruct.ApplyTemplates.process (ApplyTemplates.java:147)
    at net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:240)
    at net.sf.saxon.instruct.Copy.processLeavingTail(Copy.java:152)
    at net.sf.saxon.instruct.Template.applyLeavingTail (Template.java:98)
    at net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:317)
    at net.sf.saxon.instruct.ApplyTemplates.defaultAction(ApplyTemplates.java:349)
    at net.sf.saxon.instruct.ApplyTemplates.applyTemplates (ApplyTemplates.java:310)
    at net.sf.saxon.Controller.transformDocument(Controller.java:1705)
    at net.sf.saxon.Controller.transform(Controller.java:1513)
    at org.mpx.xslt.profiler.XsltJob.perform(Unknown Source)
    at org.mpx.util.brute.Worker.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:613)
2007-08-20 15:39:38,168 [worker-19] WARN  org.mpx.util.brute.Worker - worker problem
; SystemID: file:///Users/dev/work/bkk/brutepro