/** * 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 }
/** * 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 }