/** * Process the attributes of this element and all its children */ public void processAllAttributes() throws XPathException { if (isTopLevel() && forwardsCompatibleModeIsEnabled()) { // do nothing } else { super.processAllAttributes(); } }
/** * Process the attributes of this element and all its children */ public void processAllAttributes() throws XPathException { if (isTopLevel() && forwardsCompatibleModeIsEnabled()) { // do nothing } else { super.processAllAttributes(); } }
/** * Process the attributes of this element and all its children */ public void processAllAttributes() throws XPathException { if (reportingCircumstances == IGNORED_INSTRUCTION) { return; } if (reportingCircumstances == REPORT_ALWAYS) { throw validationError; } if (isTopLevel() && forwardsCompatibleModeIsEnabled()) { // do nothing } else { super.processAllAttributes(); } }
/** * Process the attributes of this element and all its children */ public void processAllAttributes() throws XPathException { if (reportingCircumstances == IGNORED_INSTRUCTION) { return; } if (reportingCircumstances == REPORT_ALWAYS) { throw validationError; } if (isTopLevel() && forwardsCompatibleModeIsEnabled()) { // do nothing } else { super.processAllAttributes(); } }
/** * Process the attributes of every node in the stylesheet */ public void processAllAttributes() throws XPathException { processDefaultCollationAttribute(StandardNames.DEFAULT_COLLATION); prepareAttributes(); if (topLevel == null) return; // can happen if xsl:stylesheet appears in the wrong place for (int i = 0; i < topLevel.size(); i++) { Object s = topLevel.get(i); if (s instanceof StyleElement) { try { ((StyleElement) s).processAllAttributes(); } catch (XPathException err) { ((StyleElement) s).compileError(err); } } } }
/** * Process the attributes of every node in the stylesheet */ public void processAllAttributes() throws XPathException { processDefaultCollationAttribute(StandardNames.DEFAULT_COLLATION); prepareAttributes(); if (topLevel == null) return; // can happen if xsl:stylesheet appears in the wrong place for (int i = 0; i < topLevel.size(); i++) { Object s = topLevel.get(i); if (s instanceof StyleElement) { try { ((StyleElement) s).processAllAttributes(); } catch (XPathException err) { ((StyleElement) s).compileError(err); } } } }
/** * Process the attributes of every node in the stylesheet */ public void processAllAttributes() throws XPathException { processDefaultCollationAttribute(StandardNames.DEFAULT_COLLATION); prepareAttributes(); if (topLevel == null) return; // can happen if xsl:stylesheet appears in the wrong place for (int i = 0; i < topLevel.size(); i++) { Object s = topLevel.get(i); if (s instanceof StyleElement) { try { ((StyleElement) s).processAllAttributes(); } catch (XPathException err) { ((StyleElement) s).compileError(err); } } } }
/** * Process the attributes of every node in the stylesheet module */ public void processAllAttributes() throws XPathException { prepareAttributes(); iterateAxis(AxisInfo.CHILD).forEach(node -> { if (node instanceof StyleElement) { try { ((StyleElement) node).processAllAttributes(); } catch (XPathException err) { ((StyleElement) node).compileError(err); } } }); }
/** * Process the attributes of every node in the stylesheet module */ public void processAllAttributes() throws XPathException { prepareAttributes(); iterateAxis(AxisInfo.CHILD).forEach(node -> { if (node instanceof StyleElement) { try { ((StyleElement) node).processAllAttributes(); } catch (XPathException err) { ((StyleElement) node).compileError(err); } } }); }
/** * 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 */ 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; } } }); }
@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(); } }
/** * Process the attributes of every node in the stylesheet * * @throws net.sf.saxon.trans.XPathException if static errors are found in the stylesheet */ public void processAllAttributes() throws XPathException { getRootElement().processDefaultCollationAttribute(); getRootElement().processDefaultMode(); getRootElement().prepareAttributes(); for (XSLModuleRoot xss : moduleCache.values()) { xss.prepareAttributes(); } for (ComponentDeclaration decl : topLevel) { StyleElement inst = decl.getSourceElement(); if (!inst.isActionCompleted(StyleElement.ACTION_PROCESS_ATTRIBUTES)) { inst.setActionCompleted(StyleElement.ACTION_PROCESS_ATTRIBUTES); try { inst.processAllAttributes(); } catch (XPathException err) { decl.getSourceElement().compileError(err); } } } }
/** * Process the attributes of every node in the stylesheet * * @throws net.sf.saxon.trans.XPathException if static errors are found in the stylesheet */ public void processAllAttributes() throws XPathException { getRootElement().processDefaultCollationAttribute(); getRootElement().processDefaultMode(); getRootElement().prepareAttributes(); for (XSLModuleRoot xss : moduleCache.values()) { xss.prepareAttributes(); } for (ComponentDeclaration decl : topLevel) { StyleElement inst = decl.getSourceElement(); if (!inst.isActionCompleted(StyleElement.ACTION_PROCESS_ATTRIBUTES)) { inst.setActionCompleted(StyleElement.ACTION_PROCESS_ATTRIBUTES); try { inst.processAllAttributes(); } catch (XPathException err) { decl.getSourceElement().compileError(err); } } } }