Package nux.xom.xquery

Examples of nux.xom.xquery.XQuery$DefaultErrorListener


        }
        outputDebugInfo(xdoc, settings, "transformation-result.xml");
    }

    public static void transform(Document xdoc, String query, String morpher) throws IOException, XQueryException, ParsingException {
        XQuery xmorpher = XQueryPool.GLOBAL_POOL.getXQuery(morpher, null);
        Nodes nodes = query(query, xdoc, null);
        Log.info("Transformation query [{0}] returned {1} nodes", query, nodes.size());
        XQueryUtil.update(nodes, xmorpher, null);
    }
View Full Code Here


        return StringUtils.join(strings, separator == null ? " " : separator);
    }
   
    private static Nodes query(String query, Node contextNode, Map<String, Object> variables) {
        try {
            XQuery xselect = XQueryPool.GLOBAL_POOL.getXQuery(query, null);
            Nodes nodes = xselect.execute(contextNode, null, variables).toNodes();
            return nodes;
        } catch (XQueryException ex) {
            throw new RuntimeException(ex);
        }
    }
View Full Code Here

TOP

Related Classes of nux.xom.xquery.XQuery$DefaultErrorListener

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.