/** * Get the static context for expressions on this element * * @return the static context */ public ExpressionContext getStaticContext() { if (staticContext == null) { staticContext = new ExpressionContext(this, null); } return staticContext; }
/** * Get the static context for expressions on this element * * @return the static context */ public StaticContext getStaticContext() { if (staticContext == null) { staticContext = new ExpressionContext(this); } return staticContext; }
/** * Get the static context for expressions on this element * * @return the static context */ public ExpressionContext getStaticContext() { if (staticContext == null) { staticContext = new ExpressionContext(this, null); } return staticContext; }
/** * Get the static context for expressions on this element * * @return the static context */ public StaticContext getStaticContext() { if (staticContext == null) { staticContext = new ExpressionContext(this); } return staticContext; }
public ExpressionContext getStaticContext(StructuredQName attributeName) { return new ExpressionContext(this, attributeName); }
public ExpressionContext getStaticContext(StructuredQName attributeName) { return new ExpressionContext(this, attributeName); }
/** * Process the attributes of this element and all its children * @throws XPathException in the event of a static error being detected */ protected void processAllAttributes() throws XPathException { if (!(this instanceof LiteralResultElement)) { processDefaultCollationAttribute(StandardNames.DEFAULT_COLLATION); } staticContext = new ExpressionContext(this); processAttributes(); AxisIterator kids = iterateAxis(Axis.CHILD); while (true) { NodeInfo child = (NodeInfo)kids.next(); if (child == null) { return; } if (child instanceof StyleElement) { ((StyleElement)child).processAllAttributes(); if (((StyleElement)child).explaining) { // saxon:explain on any element in a template/function now causes an explanation at the // level of the template/function explaining = true; } } } }
/** * Process the attributes of this element and all its children * @throws XPathException in the event of a static error being detected */ protected void processAllAttributes() throws XPathException { if (!(this instanceof LiteralResultElement)) { processDefaultCollationAttribute(StandardNames.DEFAULT_COLLATION); } staticContext = new ExpressionContext(this); processAttributes(); AxisIterator kids = iterateAxis(Axis.CHILD); while (true) { NodeInfo child = (NodeInfo)kids.next(); if (child == null) { return; } if (child instanceof StyleElement) { ((StyleElement)child).processAllAttributes(); if (((StyleElement)child).explaining) { // saxon:explain on any element in a template/function now causes an explanation at the // level of the template/function explaining = true; } } } }
/** * Process the attributes of this element and all its children * * @throws XPathException in the event of a static error being detected */ public void processAllAttributes() throws XPathException { processDefaultCollationAttribute(); processDefaultMode(); staticContext = new ExpressionContext(this, null); processAttributes(); iterateAxis(AxisInfo.CHILD).forEachOrFail(child -> { if (child instanceof StyleElement) { ((StyleElement) child).processAllAttributes(); if (((StyleElement) child).explaining) { // saxon:explain on any element in a template/function now causes an explanation at the // level of the template/function explaining = true; } } }); }
/** * Process the attributes of this element and all its children * * @throws XPathException in the event of a static error being detected */ public void processAllAttributes() throws XPathException { processDefaultCollationAttribute(); processDefaultMode(); staticContext = new ExpressionContext(this, null); processAttributes(); iterateAxis(AxisInfo.CHILD).forEachOrFail(child -> { if (child instanceof StyleElement) { ((StyleElement) child).processAllAttributes(); if (((StyleElement) child).explaining) { // saxon:explain on any element in a template/function now causes an explanation at the // level of the template/function explaining = true; } } }); }
@Override public void processAllAttributes() throws XPathException { String mode = getAttributeValue("mode"); mode = mode == null ? "" : Whitespace.trim(mode); if (!isDeferredCompilation(getCompilation())) { super.processAllAttributes(); //TODO - sort out the duplicated code. This repeats the code below } else { processDefaultCollationAttribute(); processDefaultMode(); staticContext = new ExpressionContext(this, null); processAttributes(); } }
@Override public void processAllAttributes() throws XPathException { String mode = getAttributeValue("mode"); mode = mode == null ? "" : Whitespace.trim(mode); if (!isDeferredCompilation(getCompilation())) { super.processAllAttributes(); //TODO - sort out the duplicated code. This repeats the code below } else { processDefaultCollationAttribute(); processDefaultMode(); staticContext = new ExpressionContext(this, null); processAttributes(); } }