1 28 29 package com.caucho.xsl.java; 30 31 import com.caucho.java.JavaWriter; 32 33 36 public class XslApplyImports extends XslNode { 37 40 public String getTagName() 41 { 42 return "xsl:apply-templates"; 43 } 44 45 50 public void generate(JavaWriter out) 51 throws Exception 52 { 53 pushCall(out); 54 generateChildren(out); 55 String mode = null; 56 String applyName = "applyNode" + _gen.getModeName(mode); 57 58 int min = _gen.getMinImportance(); 59 int max = _gen.getMaxImportance(); 60 61 String arg = "_xsl_arg" + _gen.getCallDepth(); 62 63 out.println(applyName + "(out, node, " + arg + ", " + 64 min + ", " + (max - 1) + ");"); 65 popCall(out); 66 } 67 } 68 | Popular Tags |