Examples of DocumentInfo


Examples of client.net.sf.saxon.ce.om.DocumentInfo

        if (arg1.getNodeKind() != Type.DOCUMENT) {
            dynamicError("In the " + getFunctionName().getLocalName() + "() function," +
                            " the tree being searched must be one whose root is a document node", "FODC0001", context);
            return null;
        }
        DocumentInfo doc = (DocumentInfo)arg1;
        SequenceIterator idrefs = argument[0].iterate(context);
        IdMappingFunction map = new IdMappingFunction();
        map.document = doc;
        SequenceIterator result = new MappingIterator(idrefs, map);
        return new DocumentOrderIterator(result, LocalOrderComparer.getInstance());
View Full Code Here

Examples of client.net.sf.saxon.ce.om.DocumentInfo

        Item current = context.getContextItem();
        if (current==null) {
            dynamicError("Finding root of tree: the context item is undefined", "XPDY0002", context);
        }
        if (current instanceof NodeInfo) {
            DocumentInfo doc = ((NodeInfo)current).getDocumentRoot();
            if (doc==null) {
                dynamicError("The root of the tree containing the context item is not a document node", "XPDY0050", context);
            }
            return doc;
        }
View Full Code Here

Examples of client.net.sf.saxon.ce.om.DocumentInfo

                        }
                        anc = anc.getImporter();
                    }
                }

                DocumentInfo rawDoc = getConfiguration().buildDocument(source);
                getConfiguration().getDocumentPool().add(rawDoc, key);
                DocumentImpl includedDoc = pss.loadStylesheetModule(rawDoc);

                // allow the included document to use "Literal Result Element as Stylesheet" syntax
View Full Code Here

Examples of client.net.sf.saxon.ce.om.DocumentInfo

        return fsb.toString();
    }

    private synchronized static void readBlocks(Configuration config) throws RESyntaxException {
        blocks = new HashMap<String, IntSet>(250);
        DocumentInfo doc;
        try {
            doc = config.buildDocument("unicodeBlocks.xml");
        } catch (XPathException err) {
            throw new RESyntaxException("Unable to read unicodeBlocks.xml file");
        }


        AxisIterator iter = doc.iterateAxis(Axis.DESCENDANT, new NameTest(Type.ELEMENT, "", "block", config.getNamePool()));
        while (true) {
            NodeInfo item = (NodeInfo)iter.next();
            if (item == null) {
                break;
            }
View Full Code Here

Examples of client.net.sf.saxon.ce.om.DocumentInfo

            } else if (initialTemplate == null) {
              throw new XPathException("No data-source attribute or data-initial-template value found - one is required");
            }

            String absStyleURI = (new URI(Window.Location.getHref()).resolve(styleURI)).toString();
            DocumentInfo styleDoc;
            try {
                styleDoc = config.buildDocument(absStyleURI);
            } catch (XPathException e) {
              String reportURI = (absSourceURI != null)? absSourceURI : styleURI;
              throw new XPathException("Failed to load XSLT stylesheet " + reportURI + ": " + e.getMessage());
View Full Code Here

Examples of client.net.sf.saxon.ce.om.DocumentInfo

                     responseNode = (Node)XMLDOM.parseXML(response.getText());
                     } catch(Exception e) {
                      handleException (new RuntimeException(e.getMessage()), "onResponseReceived");
                      return;
                     }
                     DocumentInfo responseDoc = config.wrapXMLDocument(responseNode, URI);
                     // now document is here, we can transform it
                     Node result = invokeTransform(responseDoc, transformTarget);
                     hr.setResultNode(result); // TODO: This isn't used yet
                       // handle OK response from the server
                   } else if (statusCode < 400) {
View Full Code Here

Examples of client.net.sf.saxon.ce.om.DocumentInfo

     * Called exactly once by NormalizerData to build the static data
     */

    static NormalizerData build(Configuration config) throws XPathException {

        DocumentInfo doc = config.buildDocument("normalizationData.xml");

        BitSet isExcluded = new BitSet(128000);
        BitSet isCompatibility = new BitSet(128000);

        NodeInfo canonicalClassKeys = null;
        NodeInfo canonicalClassValues = null;
        NodeInfo decompositionKeys = null;
        NodeInfo decompositionValues = null;

        AxisIterator iter = doc.iterateAxis(Axis.DESCENDANT, NodeKindTest.ELEMENT);
        while (true) {
            NodeInfo item = (NodeInfo)iter.next();
            if (item == null) {
                break;
            }
View Full Code Here

Examples of client.net.sf.saxon.ce.om.DocumentInfo

            DocumentURI documentKey = DocumentFn.computeDocumentKey(href, expressionBaseURI);
            DocumentPool pool = context.getController().getDocumentPool();
            if (pool.isMarkedUnavailable(documentKey)) {
                return false;
            }
            DocumentInfo doc = pool.find(documentKey);
            if (doc != null) {
                return true;
            }
            Item item = DocumentFn.makeDoc(href, expressionBaseURI, context, getSourceLocator());
            if (item != null) {
View Full Code Here

Examples of client.net.sf.saxon.ce.om.DocumentInfo

     */

    public Item evaluateItem(XPathContext context) throws XPathException {

        Controller controller = context.getController();
        DocumentInfo root;
        if (textOnly) {
            CharSequence textValue;
            if (constantText != null) {
                textValue = constantText;
            } else {
View Full Code Here

Examples of com.icl.saxon.om.DocumentInfo

                TinyBuilder result = new TinyBuilder();
                factory.newTransformer().transform(source, result);
                contextNode = (Node)result.getCurrentDocument();
            }

            DocumentInfo doc = ((NodeInfo)contextNode).getDocumentRoot();
            NamePool pool = doc.getNamePool();
            if (pool == null)
            {
                pool = NamePool.getDefaultNamePool();
                doc.setNamePool(pool);
            }
            Expression expression = Expression.make(str, new Saxon6Context(pool, resolver));

            Context context = new Context();
            context.setContextNode((NodeInfo)contextNode);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.