Package org.apache.xalan.extensions

Examples of org.apache.xalan.extensions.XPathFunctionResolverImpl


        JAXPStringXPathExpression exp = new JAXPStringXPathExpression();
        exp.setXPath("java:org.apache.servicemix.expression.JAXPXPathExpressionTest.func(string(/header/value))");
        DefaultNamespaceContext namespaceContext = new DefaultNamespaceContext();
        namespaceContext.add("java", "http://xml.apache.org/xalan/java");
        exp.setNamespaceContext(namespaceContext);
        exp.setFunctionResolver(new XPathFunctionResolverImpl());
        assertExpression(exp, "modified12", "<header><value>12</value></header>");
    }
View Full Code Here


        // org.apache.xalan.extensions.ExtensionNamespaceContext
        xpath.setNamespaceContext(new ExtensionNamespaceContext());
       
        // set the XPathFunctionResolver to
        // org.apache.xalan.extensions.XPathFunctionResolverImpl
        xpath.setXPathFunctionResolver(new XPathFunctionResolverImpl());
       
        Object result = null;
        // Evaluate the XPath expression "math:max(/doc/num)" against
        // the input document numlist.xml
        InputSource context = new InputSource("numlist.xml");
View Full Code Here

        // org.apache.xalan.extensions.ExtensionNamespaceContext
        xpath.setNamespaceContext(new ExtensionNamespaceContext());
       
        // set the XPathFunctionResolver to
        // org.apache.xalan.extensions.XPathFunctionResolverImpl
        xpath.setXPathFunctionResolver(new XPathFunctionResolverImpl());
       
        Object result = null;
        // Evaluate the XPath expression "math:max(/doc/num)" against
        // the input document numlist.xml
        InputSource context = new InputSource("numlist.xml");
View Full Code Here

        JAXPStringXPathExpression exp = new JAXPStringXPathExpression();
        exp.setXPath("java:org.apache.servicemix.expression.JAXPXPathExpressionTest.func(string(/header/value))");
        DefaultNamespaceContext namespaceContext = new DefaultNamespaceContext();
        namespaceContext.add("java", "http://xml.apache.org/xalan/java");
        exp.setNamespaceContext(namespaceContext);
        exp.setFunctionResolver(new XPathFunctionResolverImpl());
        assertExpression(exp, "modified12", "<header><value>12</value></header>");
    }
View Full Code Here

TOP

Related Classes of org.apache.xalan.extensions.XPathFunctionResolverImpl

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.