/** * Make an XPathContext object for expression evaluation. * <p>This method is intended for internal use.</p> * * @return the new XPathContext */ public XPathContextMajor newXPathContext() { XPathContextMajor c = new XPathContextMajor(this); c.setCurrentOutputUri(principalResultURI); return c; }
/** * Make an XPathContext object for expression evaluation. * <p>This method is intended for internal use.</p> * * @return the new XPathContext */ public XPathContextMajor newXPathContext() { XPathContextMajor c = new XPathContextMajor(this); c.setCurrentOutputUri(principalResultURI); return c; }
/** * Create a context for evaluating this function * * @param oldContext the existing context of the caller * @return a new context which should be supplied to the call() method. */ public XPathContextMajor makeNewContext(XPathContext oldContext) { XPathContextMajor c2 = oldContext.newCleanContext(); c2.setOrigin(this); c2.setReceiver(oldContext.getReceiver()); c2.setTemporaryOutputState(StandardNames.XSL_FUNCTION); c2.setCurrentOutputUri(null); c2.setCurrentComponent(getDeclaringComponent()); // default value for the caller to override if necessary return c2; }
/** * Create a context for evaluating this function * * @param oldContext the existing context of the caller * @param originator * @return a new context which should be supplied to the call() method. */ public XPathContextMajor makeNewContext(XPathContext oldContext, ContextOriginator originator) { XPathContextMajor c2 = oldContext.newCleanContext(); c2.setReceiver(oldContext.getReceiver()); c2.setTemporaryOutputState(StandardNames.XSL_FUNCTION); c2.setCurrentOutputUri(null); c2.setCurrentComponent(getDeclaringComponent()); // default value for the caller to override if necessary c2.setOrigin(originator); return c2; }
int savedOutputState = c2.getTemporaryOutputState(); c2.setTemporaryOutputState(StandardNames.XSL_VARIABLE); c2.setCurrentOutputUri(null); GroundedValue<?> result; if (indexed) {
int savedOutputState = c2.getTemporaryOutputState(); c2.setTemporaryOutputState(StandardNames.XSL_VARIABLE); c2.setCurrentOutputUri(null); GroundedValue<?> result; if (indexed) {