Package net.sf.saxon.style

Examples of net.sf.saxon.style.XSLFunction


     * function-available() function; in this case the method should return true if there is some
     * matching extension function, regardless of its arity.
     */

    public boolean isAvailable(int fingerprint, String uri, String local, int arity) {
        XSLFunction fn = stylesheet.getStylesheetFunction(fingerprint, arity);
        return (fn != null);
    }
View Full Code Here


     */

    public Expression bind(int nameCode, String uri, String local, Expression[] staticArgs)
            throws XPathException {
        int fingerprint = nameCode & 0xfffff;
        XSLFunction fn = stylesheet.getStylesheetFunction(fingerprint, staticArgs.length);
        if (fn==null) {
            return null;
        }
        if (fn.isOverriding() != overriding) {
            return null;
        }
        UserFunctionCall fc = new UserFunctionCall();
        fn.registerReference(fc);
        fc.setFunctionNameCode(nameCode);
        fc.setArguments(staticArgs);
        fc.setConfirmed(true);
        return fc;
    }
View Full Code Here

TOP

Related Classes of net.sf.saxon.style.XSLFunction

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.