Package net.sf.saxon.s9api

Examples of net.sf.saxon.s9api.ItemTypeFactory


        return initialized;
    }

    public XdmAtomicValue getUntypedAtomic(XProcRuntime runtime) {
        try {
            ItemTypeFactory itf = new ItemTypeFactory(runtime.getProcessor());
            ItemType untypedAtomic = itf.getAtomicType(new QName(NamespaceConstant.SCHEMA, "xs:untypedAtomic"));
            XdmAtomicValue val = new XdmAtomicValue(value, untypedAtomic);
            return val;
        } catch (SaxonApiException sae) {
            throw new XProcException(sae);
        }
View Full Code Here


    Set<Object> roots = new HashSet<Object>();
    for (TreePath path : selection.getPaths()) {
      roots.add(path.getFirstSegment());
    }
    Processor proc = new Processor(false);
    ItemTypeFactory fact = new ItemTypeFactory(proc);
    GetAstNodeFunction func = new GetAstNodeFunction(fact);
    proc.registerExtensionFunction(func);
    proc.registerExtensionFunction(new AstTextExtensionFunction(fact));
    AnalysisPluginsManager.initialiseExtensions();
    ExtensionFunctions extFuncs = new ExtensionFunctions(fact, proc);
View Full Code Here

TOP

Related Classes of net.sf.saxon.s9api.ItemTypeFactory

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.