Package client.net.sf.saxon.ce

Examples of client.net.sf.saxon.ce.Controller.checkUniqueOutputDestination()


            return getFragment(doc, fragmentId, c);
        }

        // check that the document was not written by this transformation

        if (!controller.checkUniqueOutputDestination(documentKey)) {
            pool.markUnavailable(documentKey);
            XPathException err = new XPathException(
                    "Cannot read a document that was written during the same transformation: " + documentKey);
            err.setXPathContext(c);
            err.setErrorCode("XTRE1500");
View Full Code Here


            if (controller.getDocumentPool().find(documentKey.toString()) != null) {
                dynamicError("Cannot write to a URI that has already been read: " + documentKey.toString(), "XTRE1500", context);
            }
           
            if (!controller.checkUniqueOutputDestination(documentKey)) {
                dynamicError("Cannot write more than one result document to the same URI: " + documentKey.toString(),"XTDE1490" ,context);
            } else {
              controller.addToResultDocumentPool(documentKey, doc);
                //controller.addUnavailableOutputDestination(documentKey);
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.