public XSLLocalParam getParam(StructuredQName name) { AxisIterator params = iterateAxis(AxisInfo.CHILD); NodeInfo param; while ((param = params.next()) != null) { if (param instanceof XSLLocalParam && name.equals(((XSLLocalParam) param).getObjectName())) { return (XSLLocalParam) param; } } return null; }
public XSLLocalParam getParam(StructuredQName name) { AxisIterator params = iterateAxis(AxisInfo.CHILD); NodeInfo param; while ((param = params.next()) != null) { if (param instanceof XSLLocalParam && name.equals(((XSLLocalParam) param).getObjectName())) { return (XSLLocalParam) param; } } return null; }
private static void setLocalParamDetails(XSLTemplate source, NamedTemplate nt) throws XPathException { AxisIterator kids = source.iterateAxis(AxisInfo.CHILD, NodeKindTest.ELEMENT); List<NamedTemplate.LocalParamInfo> details = new ArrayList<>(); kids.forEachOrFail(child -> { if (child instanceof XSLLocalParam) { XSLLocalParam lp = (XSLLocalParam) child; lp.prepareTemplateSignatureAttributes(); NamedTemplate.LocalParamInfo info = new NamedTemplate.LocalParamInfo(); info.name = lp.getVariableQName(); info.requiredType = lp.getRequiredType(); info.isRequired = lp.isRequiredParam(); info.isTunnel = lp.isTunnelParam(); details.add(info); } }); nt.setLocalParamDetails(details); }
private static void setLocalParamDetails(XSLTemplate source, NamedTemplate nt) throws XPathException { AxisIterator kids = source.iterateAxis(AxisInfo.CHILD, NodeKindTest.ELEMENT); List<NamedTemplate.LocalParamInfo> details = new ArrayList<>(); kids.forEachOrFail(child -> { if (child instanceof XSLLocalParam) { XSLLocalParam lp = (XSLLocalParam) child; lp.prepareTemplateSignatureAttributes(); NamedTemplate.LocalParamInfo info = new NamedTemplate.LocalParamInfo(); info.name = lp.getVariableQName(); info.requiredType = lp.getRequiredType(); info.isRequired = lp.isRequiredParam(); info.isTunnel = lp.isTunnelParam(); details.add(info); } }); nt.setLocalParamDetails(details); }
AxisIterator params = iterateAxis(AxisInfo.CHILD); NodeInfo param; while ((param = params.next()) != null) {
AxisIterator params = iterateAxis(AxisInfo.CHILD); NodeInfo param; while ((param = params.next()) != null) {
public void validate() throws XPathException { stackFrameMap = getConfiguration().makeSlotManager(); checkTopLevel(null); // the check for duplicates is now done in the buildIndexes() method of XSLStylesheet if (match != null) { match = typeCheck("match", match); if (match.getNodeTest() instanceof EmptySequenceTest) { try { getConfiguration().getErrorListener().warning( new TransformerException("Match pattern cannot match any nodes", this)); } catch (TransformerException e) { compileError(XPathException.makeXPathException(e)); } } } // See if there are any required parameters. AxisIterator kids = iterateAxis(Axis.CHILD); while(true) { NodeInfo param = (NodeInfo)kids.next(); if (param == null) { break; } if (param instanceof XSLParam && ((XSLParam)param).isRequiredParam()) { hasRequiredParams = true; break; } } }
public void validate() throws XPathException { stackFrameMap = getConfiguration().makeSlotManager(); checkTopLevel(null); // the check for duplicates is now done in the buildIndexes() method of XSLStylesheet if (match != null) { match = typeCheck("match", match); if (match.getNodeTest() instanceof EmptySequenceTest) { try { getConfiguration().getErrorListener().warning( new TransformerException("Match pattern cannot match any nodes", this)); } catch (TransformerException e) { compileError(XPathException.makeXPathException(e)); } } } markTailCalls(); // See if there are any required parameters AxisIterator declaredParams = iterateAxis(Axis.CHILD); while(true) { NodeInfo param = (NodeInfo)declaredParams.next(); if (param == null) { break; } if (param instanceof XSLParam && ((XSLParam)param).isRequiredParam()) { hasRequiredParams = true; break; } } }
public void validate() throws XPathException { stackFrameMap = getConfiguration().makeSlotManager(); checkTopLevel(null); // the check for duplicates is now done in the buildIndexes() method of XSLStylesheet if (match != null) { match = typeCheck("match", match); if (match.getNodeTest() instanceof EmptySequenceTest) { try { getConfiguration().getErrorListener().warning( new TransformerException("Match pattern cannot match any nodes", this)); } catch (TransformerException e) { compileError(XPathException.makeXPathException(e)); } } } markTailCalls(); // See if there are any required parameters AxisIterator declaredParams = iterateAxis(Axis.CHILD); while(true) { NodeInfo param = (NodeInfo)declaredParams.next(); if (param == null) { break; } if (param instanceof XSLParam && ((XSLParam)param).isRequiredParam()) { hasRequiredParams = true; break; } } }
AxisIterator declaredParams = template.iterateAxis(Axis.CHILD); while(true) { NodeInfo param = (NodeInfo)declaredParams.next(); AxisIterator formalParams = template.iterateAxis(Axis.CHILD); boolean ok = false; while(true) {
AxisIterator declaredParams = template.iterateAxis(Axis.CHILD); while(true) { NodeInfo param = (NodeInfo)declaredParams.next(); AxisIterator formalParams = template.iterateAxis(Axis.CHILD); boolean ok = false; while(true) {
AxisIterator kids = iterateAxis(AxisInfo.CHILD); boolean hasContent = false; NodeImpl param;
AxisIterator kids = iterateAxis(AxisInfo.CHILD); boolean hasContent = false; NodeImpl param;
Expression block = compileSequenceConstructor(exec, iterateAxis(Axis.CHILD), true); if (block == null) { block = Literal.makeEmptySequence();
Expression block = compileSequenceConstructor(exec, iterateAxis(Axis.CHILD), true); if (block == null) { block = Literal.makeEmptySequence();
Expression block = compileSequenceConstructor(exec, iterateAxis(Axis.CHILD), true); if (block == null) { block = Literal.makeEmptySequence();