Package org.pdf4j.saxon.query

Examples of org.pdf4j.saxon.query.StaticQueryContext


     * XQStaticContext
     * @return a newly constructed StaticQueryContext object
     */

    protected StaticQueryContext getSaxonStaticQueryContext() {
        StaticQueryContext sqc = new StaticQueryContext(config);
        sqc.setBaseURI(baseURI);
        sqc.setConstructionMode(constructionModeIsPreserve ? Validation.PRESERVE : Validation.STRIP);
        sqc.setDefaultElementNamespace(defaultElementNamespace);
        sqc.setDefaultFunctionNamespace(defaultFunctionNamespace);
        sqc.setEmptyLeast(emptyLeast);
        sqc.setInheritNamespaces(inheritNamespaces);
        sqc.setPreserveBoundarySpace(preserveBoundarySpace);
        sqc.setPreserveNamespaces(preserveNamespaces);
        if (contextItemStaticType != null) {
            sqc.setRequiredContextItemType(contextItemStaticType.getSaxonItemType());
        }
        for (Iterator iter = namespaces.keySet().iterator(); iter.hasNext();) {
            String prefix = (String)iter.next();
            String uri = (String)namespaces.get(prefix);
            sqc.declareNamespace(prefix, uri);
        }
        return sqc;
    }
View Full Code Here

TOP

Related Classes of org.pdf4j.saxon.query.StaticQueryContext

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.