/** * Parse the attributes and contents of an <xsl:apply-imports/> element. */ public void parseContents(Parser parser) { // Indicate to the top-level stylesheet that all templates must be // compiled into separate methods. Stylesheet stylesheet = getStylesheet(); stylesheet.setTemplateInlining(false); // Get the mode we are currently in (might not be any) Template template = getTemplate(); _modeName = template.getModeName(); _precedence = template.getImportPrecedence(); parseChildren(parser); // with-params }
/** * Returns true if this <xsl:apply-imports/> element has parameters */ public boolean hasWithParams() { return hasContents(); }
final int minPrecedence = getMinPrecedence(maxPrecedence); final Mode mode = stylesheet.getMode(_modeName);
/** * Type-check the attributes/contents of an <xsl:apply-imports/> element. */ public Type typeCheck(SymbolTable stable) throws TypeCheckError { typeCheckContents(stable); // with-params return Type.Void; }
/** * Determine the lowest import precedence for any stylesheet imported * or included by the stylesheet in which this <xsl:apply-imports/> * element occured. The templates that are imported by the stylesheet in * which this element occured will all have higher import precedence than * the integer returned by this method. */ private int getMinPrecedence(int max) { // Move to root of include tree Stylesheet includeRoot = getStylesheet(); while (includeRoot._includedFrom != null) { includeRoot = includeRoot._includedFrom; } return includeRoot.getMinimumDescendantPrecedence(); }
final int minPrecedence = getMinPrecedence(maxPrecedence); final Mode mode = stylesheet.getMode(_modeName);
/** * Type-check the attributes/contents of an <xsl:apply-imports/> element. */ public Type typeCheck(SymbolTable stable) throws TypeCheckError { typeCheckContents(stable); // with-params return Type.Void; }
/** * Determine the lowest import precedence for any stylesheet imported * or included by the stylesheet in which this <xsl:apply-imports/> * element occured. The templates that are imported by the stylesheet in * which this element occured will all have higher import precedence than * the integer returned by this method. */ private int getMinPrecedence(int max) { // Move to root of include tree Stylesheet includeRoot = getStylesheet(); while (includeRoot._includedFrom != null) { includeRoot = includeRoot._includedFrom; } return includeRoot.getMinimumDescendantPrecedence(); }
/** * Parse the attributes and contents of an <xsl:apply-imports/> element. */ public void parseContents(Parser parser) { // Indicate to the top-level stylesheet that all templates must be // compiled into separate methods. Stylesheet stylesheet = getStylesheet(); stylesheet.setTemplateInlining(false); // Get the mode we are currently in (might not be any) Template template = getTemplate(); _modeName = template.getModeName(); _precedence = template.getImportPrecedence(); parseChildren(parser); // with-params }
final int minPrecedence = getMinPrecedence(maxPrecedence); final Mode mode = stylesheet.getMode(_modeName);
/** * Returns true if this <xsl:apply-imports/> element has parameters */ public boolean hasWithParams() { return hasContents(); }
final int minPrecedence = getMinPrecedence(maxPrecedence); final Mode mode = stylesheet.getMode(_modeName);