throw new IllegalStateException("Query is updating; cannot run with streaming"); Configuration config = context.getConfiguration(); if (config.isTiming()) { String systemId = source.getSystemId();
throw new IllegalStateException("Query is updating; cannot run with streaming"); Configuration config = context.getConfiguration(); if (config.isTiming()) { String systemId = source.getSystemId();
throw new XPathException("Cannot call pull() on an updating query"); Configuration config = dynamicEnv.getConfiguration(); try { Controller controller = newController();
private XPathContextMajor initialContext(DynamicQueryContext dynamicEnv, Controller controller) throws XPathException { Item contextItem = dynamicEnv.getContextItem(); controller.defineGlobalParameters(); XPathContextMajor context = controller.newXPathContext(); if (contextItem != null) { if (!staticContext.getUserQueryContext().getRequiredContextItemType().matchesItem( contextItem, false, dynamicEnv.getConfiguration())) { throw new XPathException("The supplied context item does not match the required context item type"); } UnfailingIterator single = SingletonIterator.makeIterator(contextItem); single.next(); context.setCurrentIterator(single); controller.setInitialContextItem(contextItem); } return context; }
private XPathContextMajor initialContext(DynamicQueryContext dynamicEnv, Controller controller) throws XPathException { Item contextItem = dynamicEnv.getContextItem(); controller.defineGlobalParameters(); XPathContextMajor context = controller.newXPathContext(); if (contextItem != null) { if (!staticContext.getUserQueryContext().getRequiredContextItemType().matchesItem( contextItem, false, dynamicEnv.getConfiguration())) { throw new XPathException("The supplied context item does not match the required context item type"); } UnfailingIterator single = SingletonIterator.makeIterator(contextItem); single.next(); context.setCurrentIterator(single); controller.setInitialContextItem(contextItem); } return context; }
Configuration config = dynamicEnv.getConfiguration(); try { Controller controller = newController();
((TinyBuilder) sourceTreeBuilder).setStatistics(context.getConfiguration().getTreeStatistics().SOURCE_DOCUMENT_STATISTICS);
contextItem, false, env.getConfiguration())) { throw new XPathException("The supplied context item does not match the required context item type");
contextItem, false, env.getConfiguration())) { throw new XPathException("The supplied context item does not match the required context item type");
throw new XPathException("Cannot call iterator() on an updating query"); if (!env.getConfiguration().isCompatible(getExecutable().getConfiguration())) { throw new XPathException("The query must be compiled and executed under the same Configuration", SaxonErrorCode.SXXP0004);
throw new XPathException("Cannot call iterator() on an updating query"); if (!env.getConfiguration().isCompatible(getExecutable().getConfiguration())) { throw new XPathException("The query must be compiled and executed under the same Configuration", SaxonErrorCode.SXXP0004);
throw new XPathException("Cannot call run() on an updating query"); if (!env.getConfiguration().isCompatible(getExecutable().getConfiguration())) { throw new XPathException("The query must be compiled and executed under the same Configuration", SaxonErrorCode.SXXP0004);
throw new XPathException("Cannot call run() on an updating query"); if (!env.getConfiguration().isCompatible(getExecutable().getConfiguration())) { throw new XPathException("The query must be compiled and executed under the same Configuration", SaxonErrorCode.SXXP0004);