Examples of moreDocuments()


Examples of com.xmlcalabash.io.ReadablePipe.moreDocuments()

                    pipe = ((XCatch) this).errorPipe;
                } else {
                    pipe = getPipeFromBinding(binding);
                }
                doc = pipe.read();
                if (pipe.moreDocuments()) {
                    throw XProcException.dynamicError(step, 8, "More than one document in context for parameter '" + var.getName() + "'");
                }
            }
        } catch (SaxonApiException sae) {
            throw new XProcException(sae);
View Full Code Here

Examples of com.xmlcalabash.io.ReadablePipe.moreDocuments()

                pipe = new ReadableDocument(runtime, doc, null, null, null);
            } else {
                pipe = new ReadableData(runtime, XProcConstants.c_data, entity.getStream(), entity.getMediaType().toString());
            }

            while (pipe.moreDocuments()) {
                XdmNode doc = pipe.read();
                nodes.add(doc);
            }
        } catch (Exception e) {
            throw new XProcException(e);
View Full Code Here

Examples of com.xmlcalabash.io.ReadablePipe.moreDocuments()

            pipeconfig.ran = true;

            for (String port : pipeline.getOutputs()) {
                Vector<XdmNode> nodes = new Vector<XdmNode> ();
                ReadablePipe rpipe = pipeline.readFrom(port);
                while (rpipe.moreDocuments()) {
                    nodes.add(rpipe.read());
                }
                pipeconfig.outputs.put(port, nodes);
            }
        } catch (Exception e) {
View Full Code Here

Examples of com.xmlcalabash.io.ReadablePipe.moreDocuments()

        } else {
            vsource = inputs.get(iport).get(0);
        }

        XdmNode doc = vsource.read();
        if (doc == null || vsource.moreDocuments()) {
            throw XProcException.dynamicError(3);
        }
       
        matcher = new ProcessMatch(runtime, this);
View Full Code Here

Examples of com.xmlcalabash.io.ReadablePipe.moreDocuments()

            XProcPipeline compare = t.comparepipeline;
            Hashtable<String, Vector<XdmNode>> cinputs = new Hashtable<String, Vector<XdmNode>> ();
            for (String port : pipeoutputs.keySet()) {
                if (compare.inputPorts.contains(port)) {
                    ReadablePipe pipe = pipeoutputs.get(port);
                    while (pipe.moreDocuments()) {
                        try {
                            XdmNode p = pipe.read();
                            if (!cinputs.containsKey(port)) {
                                cinputs.put(port, new Vector<XdmNode> ());
                            }
View Full Code Here

Examples of com.xmlcalabash.io.ReadablePipe.moreDocuments()

                }

                Vector<XdmNode> pres = results.get(port);
                Vector<XdmNode> pexp = expects.get(port);

                while (pipe.moreDocuments()) {
                    if (touts.size() > 0) {
                        XdmNode tdoc = touts.remove(0);
                        XdmNode pdoc = pipe.read();

                        if (t.ignoreWS) {
View Full Code Here

Examples of com.xmlcalabash.io.Select.moreDocuments()

        super.run();

        String selectExpr = getOption(_select).getString();
        Select input = new Select(runtime,source,selectExpr,step.getNode());

        while (input.moreDocuments()) {
            XdmNode doc = input.read();
            result.write(doc);
        }
    }
}
View Full Code Here

Examples of javax.activation.DataSource.moreDocuments()

                } else {
                    throw new XProcException("Unexpected element in email message: " + field.getNodeName());
                }
            }

            while (source.moreDocuments()) {
                XdmNode xmlpart = S9apiUtils.getDocumentElement(source.read());
                String contentType = xmlpart.getAttributeValue(_content_type);
                String filename = xmlpart.getBaseURI().getPath();
                int pos = filename.lastIndexOf("/");
                if (pos >= 0) {
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.