/** * Ask whether this instruction requires a different retained static context from the containing * (parent) instruction. That is, this instruction changes the static base URI, the default collation, * or the set of in-scope namespaces. * * @return true if the context for evaluating this instruction differs in relevant ways from that * of the calling instruction */ public boolean changesRetainedStaticContext() { NodeImpl parent = getParent(); return parent == null || !ExpressionTool.equalOrNull(getBaseURI(), parent.getBaseURI()) || defaultCollationName != null || defaultXPathNamespace != null || getDeclaredNamespaces(NamespaceBinding.EMPTY_ARRAY).length != 0 || !(parent instanceof StyleElement) || getEffectiveVersion() != ((StyleElement) getParent()).getEffectiveVersion(); }
/** * Ask whether this instruction requires a different retained static context from the containing * (parent) instruction. That is, this instruction changes the static base URI, the default collation, * or the set of in-scope namespaces. * * @return true if the context for evaluating this instruction differs in relevant ways from that * of the calling instruction */ public boolean changesRetainedStaticContext() { NodeImpl parent = getParent(); return parent == null || !ExpressionTool.equalOrNull(getBaseURI(), parent.getBaseURI()) || defaultCollationName != null || defaultXPathNamespace != null || getDeclaredNamespaces(NamespaceBinding.EMPTY_ARRAY).length != 0 || !(parent instanceof StyleElement) || getEffectiveVersion() != ((StyleElement) getParent()).getEffectiveVersion(); }