public XSLGlobalVariable() { sourceBinding.setProperty(SourceBinding.GLOBAL, true); }
public XSLGlobalParam() { sourceBinding.setProperty(SourceBinding.PARAM, true); }
public XSLGlobalVariable() { sourceBinding.setProperty(SourceBinding.GLOBAL, true); }
public XSLGlobalParam() { sourceBinding.setProperty(SourceBinding.PARAM, true); }
public void prepareTemplateSignatureAttributes() throws XPathException { if (!prepared) { sourceBinding.setProperty(SourceBinding.PARAM, true); sourceBinding.prepareTemplateSignatureAttributes(); } }
public void prepareTemplateSignatureAttributes() throws XPathException { if (!prepared) { sourceBinding.setProperty(SourceBinding.PARAM, true); sourceBinding.prepareTemplateSignatureAttributes(); } }
public SourceBinding hasImplicitBinding(StructuredQName name) { if (name.getLocalPart().equals("value") && name.hasURI("")) { SourceBinding sb = new SourceBinding(this); sb.setVariableQName(new StructuredQName("", "", "value")); assert ((XSLAccumulator)getParent()) != null; sb.setDeclaredType(((XSLAccumulator)getParent()).getResultType()); sb.setProperty(SourceBinding.IMPLICITLY_DECLARED, true); return sb; } else { return null; } } }
public SourceBinding hasImplicitBinding(StructuredQName name) { if (name.getLocalPart().equals("value") && name.hasURI("")) { SourceBinding sb = new SourceBinding(this); sb.setVariableQName(new StructuredQName("", "", "value")); assert ((XSLAccumulator)getParent()) != null; sb.setDeclaredType(((XSLAccumulator)getParent()).getResultType()); sb.setProperty(SourceBinding.IMPLICITLY_DECLARED, true); return sb; } else { return null; } } }
String requiredAtt = Whitespace.trim(atts.getValue(a)); boolean required = sourceElement.processBooleanAttribute("required", requiredAtt); setProperty(REQUIRED, required); } else if (f.equals("tunnel")) { String tunnelAtt = Whitespace.trim(atts.getValue(a)); boolean tunnel = sourceElement.processBooleanAttribute("tunnel", tunnelAtt); setProperty(TUNNEL, tunnel); } else if (NamespaceConstant.SAXON.equals(atts.getURI(a))) { if (atts.getLocalName(a).equals("as")) {
String requiredAtt = Whitespace.trim(atts.getValue(a)); boolean required = sourceElement.processBooleanAttribute("required", requiredAtt); setProperty(REQUIRED, required); } else if (f.equals("tunnel")) { String tunnelAtt = Whitespace.trim(atts.getValue(a)); boolean tunnel = sourceElement.processBooleanAttribute("tunnel", tunnelAtt); setProperty(TUNNEL, tunnel); } else if (NamespaceConstant.SAXON.equals(atts.getURI(a))) { if (atts.getLocalName(a).equals("as")) {
@Override public void prepareAttributes() throws XPathException { if (!prepared) { prepared = true; sourceBinding.setProperty(SourceBinding.PARAM, true); if (getParent() instanceof XSLFunction) { permittedAttributes &= ~SourceBinding.SELECT; sourceBinding.setProperty(SourceBinding.DISALLOWS_CONTENT, true); } sourceBinding.prepareAttributes(permittedAttributes); if (sourceBinding.hasProperty(SourceBinding.TUNNEL) && !(getParent() instanceof XSLTemplate)) { compileError("For attribute 'tunnel' within an " + getParent().getDisplayName() + " parameter, the only permitted value is 'no'", "XTSE0020"); } if (getParent() instanceof XSLFunction && getAttributeValue("", "required") != null) { if (!sourceBinding.hasProperty(SourceBinding.REQUIRED)) { compileError("For attribute 'required' within an " + getParent().getDisplayName() + " parameter, the only permitted value is 'yes'", "XTSE0020"); } } } }
@Override public void prepareAttributes() throws XPathException { if (!prepared) { prepared = true; sourceBinding.setProperty(SourceBinding.PARAM, true); if (getParent() instanceof XSLFunction) { permittedAttributes &= ~SourceBinding.SELECT; sourceBinding.setProperty(SourceBinding.DISALLOWS_CONTENT, true); } sourceBinding.prepareAttributes(permittedAttributes); if (sourceBinding.hasProperty(SourceBinding.TUNNEL) && !(getParent() instanceof XSLTemplate)) { compileError("For attribute 'tunnel' within an " + getParent().getDisplayName() + " parameter, the only permitted value is 'no'", "XTSE0020"); } if (getParent() instanceof XSLFunction && getAttributeValue("", "required") != null) { if (!sourceBinding.hasProperty(SourceBinding.REQUIRED)) { compileError("For attribute 'required' within an " + getParent().getDisplayName() + " parameter, the only permitted value is 'yes'", "XTSE0020"); } } } }
setProperty(REQUIRED, required); if (required && select != null) { sourceElement.compileError("xsl:param: cannot supply a default value when required='yes'"); sourceElement.compileErrorInAttribute("The only permitted value of the 'tunnel' attribute is 'no'", "XTSE0020", "tunnel"); setProperty(TUNNEL, tunnel); setProperty(ASSIGNABLE, assignable); setProperty(STATIC, statick); if (statick) { setProperty(SourceBinding.DISALLOWS_CONTENT, true);
setProperty(REQUIRED, required); if (required && select != null) { sourceElement.compileError("xsl:param: cannot supply a default value when required='yes'"); sourceElement.compileErrorInAttribute("The only permitted value of the 'tunnel' attribute is 'no'", "XTSE0020", "tunnel"); setProperty(TUNNEL, tunnel); setProperty(ASSIGNABLE, assignable); setProperty(STATIC, statick); if (statick) { setProperty(SourceBinding.DISALLOWS_CONTENT, true);
setProperty(IMPLICITLY_REQUIRED, true);
setProperty(IMPLICITLY_REQUIRED, true);