public void prepareAttributes() throws XPathException { AttributeCollection atts = getAttributeList(); for (int a = 0; a < atts.getLength(); a++) { checkUnknownAttribute(atts.getNodeName(a)); } }
public void validate(ComponentDeclaration decl) throws XPathException { //checkWithinTemplate(); AxisIterator kids = iterateAxis(AxisInfo.CHILD); while (true) { NodeInfo child = kids.next(); if (child == null) { break; } if (child instanceof XSLWithParam) { // OK; } else if (child.getNodeKind() == Type.TEXT) { // with xml:space=preserve, white space nodes may still be there if (!Whitespace.isWhite(child.getStringValueCS())) { compileError("No character data is allowed within xsl:apply-imports", "XTSE0010"); } } else { compileError("Child element " + child.getDisplayName() + " is not allowed as a child of xsl:apply-imports", "XTSE0010"); } } NodeImpl parent = getParent(); while (parent != null) { if (parent instanceof XSLOverride) { compileError("xsl:apply-imports cannot be used in a template rule declared within xsl:override", "XTSE3460"); } parent = parent.getParent(); } }
public Expression compile(Executable exec) throws XPathException { ApplyImports inst = new ApplyImports(backwardsCompatibleModeIsEnabled()); inst.setActualParameters(getWithParamInstructions(exec, false, inst), getWithParamInstructions(exec, true, inst)); return inst; }
public void validate() throws XPathException { //checkWithinTemplate(); AxisIterator kids = iterateAxis(Axis.CHILD); while (true) { NodeInfo child = (NodeInfo)kids.next(); if (child == null) { break; } if (child instanceof XSLWithParam) { // OK; } else if (child.getNodeKind() == Type.TEXT) { // with xml:space=preserve, white space nodes may still be there if (!Whitespace.isWhite(child.getStringValueCS())) { compileError("No character data is allowed within xsl:apply-imports", "XTSE0010"); } } else { compileError("Child element " + child.getDisplayName() + " is not allowed within xsl:apply-imports", "XTSE0010"); } } }
return new XSLAnalyzeString(); case StandardNames.XSL_APPLY_IMPORTS: return new XSLApplyImports(); case StandardNames.XSL_APPLY_TEMPLATES: return new XSLApplyTemplates();
public Expression compile(Compilation exec, ComponentDeclaration decl) throws XPathException { ApplyImports inst = new ApplyImports(); WithParam[] nonTunnels = getWithParamInstructions(inst, exec, decl, false); WithParam[] tunnels = getWithParamInstructions(inst, exec, decl, true); inst.setActualParams(nonTunnels); inst.setTunnelParams(tunnels); return inst; }
public void validate() throws XPathException { //checkWithinTemplate(); AxisIterator kids = iterateAxis(Axis.CHILD); while (true) { NodeInfo child = (NodeInfo)kids.next(); if (child == null) { break; } if (child instanceof XSLWithParam) { // OK; } else if (child.getNodeKind() == Type.TEXT) { // with xml:space=preserve, white space nodes may still be there if (!Whitespace.isWhite(child.getStringValueCS())) { compileError("No character data is allowed within xsl:apply-imports", "XTSE0010"); } } else { compileError("Child element " + child.getDisplayName() + " is not allowed within xsl:apply-imports", "XTSE0010"); } } }
return new XSLAnalyzeString(); case StandardNames.XSL_APPLY_IMPORTS: return new XSLApplyImports(); case StandardNames.XSL_APPLY_TEMPLATES: return new XSLApplyTemplates();
public Expression compile(Compilation exec, ComponentDeclaration decl) throws XPathException { ApplyImports inst = new ApplyImports(); WithParam[] nonTunnels = getWithParamInstructions(inst, exec, decl, false); WithParam[] tunnels = getWithParamInstructions(inst, exec, decl, true); inst.setActualParams(nonTunnels); inst.setTunnelParams(tunnels); return inst; }
public void prepareAttributes() throws XPathException { AttributeCollection atts = getAttributeList(); for (int a=0; a<atts.getLength(); a++) { int nc = atts.getNameCode(a); checkUnknownAttribute(nc); } }
public void validate(ComponentDeclaration decl) throws XPathException { //checkWithinTemplate(); AxisIterator kids = iterateAxis(AxisInfo.CHILD); while (true) { NodeInfo child = kids.next(); if (child == null) { break; } if (child instanceof XSLWithParam) { // OK; } else if (child.getNodeKind() == Type.TEXT) { // with xml:space=preserve, white space nodes may still be there if (!Whitespace.isWhite(child.getStringValueCS())) { compileError("No character data is allowed within xsl:apply-imports", "XTSE0010"); } } else { compileError("Child element " + child.getDisplayName() + " is not allowed as a child of xsl:apply-imports", "XTSE0010"); } } NodeImpl parent = getParent(); while (parent != null) { if (parent instanceof XSLOverride) { compileError("xsl:apply-imports cannot be used in a template rule declared within xsl:override", "XTSE3460"); } parent = parent.getParent(); } }
return new XSLAnalyzeString(); case StandardNames.XSL_APPLY_IMPORTS: return new XSLApplyImports(); case StandardNames.XSL_APPLY_TEMPLATES: return new XSLApplyTemplates();
public Expression compile(Executable exec) throws XPathException { ApplyImports inst = new ApplyImports(backwardsCompatibleModeIsEnabled()); inst.setActualParameters(getWithParamInstructions(exec, false, inst), getWithParamInstructions(exec, true, inst)); return inst; }
public void prepareAttributes() throws XPathException { AttributeCollection atts = getAttributeList(); for (int a = 0; a < atts.getLength(); a++) { checkUnknownAttribute(atts.getNodeName(a)); } }
return new XSLAnalyzeString(); case StandardNames.XSL_APPLY_IMPORTS: return new XSLApplyImports(); case StandardNames.XSL_APPLY_TEMPLATES: return new XSLApplyTemplates();
public void prepareAttributes() throws XPathException { AttributeCollection atts = getAttributeList(); for (int a=0; a<atts.getLength(); a++) { int nc = atts.getNameCode(a); checkUnknownAttribute(nc); } }
return new XSLAnalyzeString(); case StandardNames.XSL_APPLY_IMPORTS: return new XSLApplyImports(); case StandardNames.XSL_APPLY_TEMPLATES: return new XSLApplyTemplates();