Package com.xmlcalabash.util

Examples of com.xmlcalabash.util.ProcessMatch


        return xpathReplacements;
    }
   
    private XdmNode makeReplacements(XdmNode doc, List<XPathReplacement> replacements) {
        for (XPathReplacement xpathRepl : replacements) {
          matcher = new ProcessMatch(runtime, xpathRepl);
          xpathRepl.setMatcher(matcher);
         
            matcher.match(doc, new RuntimeValue(xpathRepl.getXPath()));
            doc = matcher.getResult();
        }
View Full Code Here


        new CopyTransformImagefileRefsXpath,
                    getTargetDirectoryURI(),
                    getTargetHtmlContentDirectoryURI(),
                    getOutputType());

    matcher = new ProcessMatch(runtime, copyTransform);
    copyTransform.setMatcher(matcher);

    matcher.match(doc, new RuntimeValue(fileRefsXpath));
    doc = matcher.getResult();
   
View Full Code Here

        replace = getOption(_replace);
        for (String prefix : replace.getNamespaceBindings().keySet()) {
            rns.put(prefix, replace.getNamespaceBindings().get(prefix));
        }

        matcher = new ProcessMatch(runtime, this);
        matcher.match(source.read(), match);

        result.write(matcher.getResult());
    }
View Full Code Here

    }

    public void run() throws SaxonApiException {
        super.run();

        ProcessMatch matcher = null;

        matcher = new ProcessMatch(runtime, this);
        matcher.match(source.read(), getOption(_match));

        XdmNode tree = matcher.getResult();
        result.write(tree);
    }
View Full Code Here

            throw XProcException.stepError(68);
        }

        context = source.read();

        matcher = new ProcessMatch(runtime, this);
        matcher.match(template.read(), new RuntimeValue("node()", step.getNode()));

        result.write(matcher.getResult());
    }
View Full Code Here

            hash = hmac(value, params.get(_accessKey));
        } else {
            throw XProcException.dynamicError(36);
        }

        matcher = new ProcessMatch(runtime, this);
        matcher.match(source.read(), getOption(_match));

        if (source.moreDocuments()) {
            throw XProcException.dynamicError(6);
        }
View Full Code Here

            setBaseURI = base.getBaseURI().resolve(base.getString());
        }

        logger.trace(MessageFormatter.nodeMessage(doc, "Making URIs absolute against: " + setBaseURI));

        matcher = new ProcessMatch(runtime, this);
        matcher.match(doc, getOption(_match));

        if (source.moreDocuments()) {
            throw XProcException.dynamicError(6);
        }
View Full Code Here

    }

    public void run() throws SaxonApiException {
        super.run();

        matcher = new ProcessMatch(runtime, this);
        matcher.match(source.read(), getOption(_match));

        if (source.moreDocuments()) {
            throw XProcException.dynamicError(6);
        }
View Full Code Here

                || ("xml".equals(attrName.getPrefix())
                        && !XMLConstants.XML_NS_URI.equals(attrName.getNamespaceURI()))) {
            throw XProcException.stepError(59);
        }

        matcher = new ProcessMatch(runtime, this);
        matcher.match(source.read(), getOption(_match));

        result.write(matcher.getResult());
    }
View Full Code Here

    }

    public void run() throws SaxonApiException {
        super.run();

        matcher = new ProcessMatch(runtime, this);
        matcher.match(source.read(), getOption(_match));

        result.write(matcher.getResult());
    }
View Full Code Here

TOP

Related Classes of com.xmlcalabash.util.ProcessMatch

Copyright © 2018 www.massapicom. 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.