⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _default__xsl.java

📁 《jsp编程起步》里面的所有源代码
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
      XPath.freeEnv(_xsl_arg1);
    }
    out.popElement();
    out.disableEscaping(oldEscaping);
  }
  
  // 'defun[$xtp:path_info and ($xtp:path_info!=concat("/", @name))]'
  private void _xsl_template_47(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    out.disableEscaping(oldEscaping);
  }
  
  // 'decl'
  private void _xsl_template_48(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    out.setLocation("caucho/contents.xsl", 521);
    out.pushElement("", "", "table", "table");
    out.setAttribute("class", "def");
    out.setLocation("caucho/contents.xsl", 521);
    out.pushElement("", "", "tr", "tr");
    out.setLocation("caucho/contents.xsl", 521);
    out.pushElement("", "", "td", "td");
    {
      Env _xsl_arg1 = XPath.createEnv(env);
      for (Node _xsl_node = node.getFirstChild();
           _xsl_node != null;
           _xsl_node = _xsl_node.getNextSibling())
        applyNode(out, _xsl_node, _xsl_arg1, null, 0, 2147483647);
      XPath.freeEnv(_xsl_arg1);
    }
    out.popElement();
    out.popElement();
    out.popElement();
    out.disableEscaping(oldEscaping);
  }
  
  void writeSummaryName(XslWriter out, Node node)  throws IOException, SAXException{  Element elt = (Element) node;  String name = elt.getAttribute("name");  String title = elt.getAttribute("title");  if (name.equals(""))    name = title;  if (title.equals(""))    title = name;  int p1 = title.indexOf('(');  int p2 = title.lastIndexOf(')');  String head = null;  String tail = null;  if (p1 < 0 || p1 < 0) {    if (name.equals(""))      name = elt.getAttribute("title");    out.pushElement("a");    out.setAttribute("href", "#" + href(name));    out.print(title);    out.popElement();  }  else if (p1 == 0) {    out.pushElement("a");    out.setAttribute("href", "#" + href(name));    out.print(title.substring(p1 + 1, p2));    out.popElement();  }  else {    out.pushElement("a");    out.setAttribute("href", "#" + href(name));    out.print(title.substring(0, p1));    out.popElement();    out.print(title.substring(p1));  }}
  // 'text()|er()'
  private void _xsl_template_49(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    out.disableEscaping(oldEscaping);
  }
  
  // 'text()|er()'
  private void _xsl_template_50(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    out.disableEscaping(oldEscaping);
  }
  
  // 'defun'
  private void _xsl_template_51(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    out.setLocation("caucho/contents.xsl", 577);
    out.pushElement("", "", "tr", "tr");
    out.setLocation("caucho/contents.xsl", 577);
    out.pushElement("", "", "td", "td");
    out.setAttribute("class", "code");
    out.setAttribute("width", "40%");
     writeSummaryName(out, node); 
    out.popElement();
    out.setLocation("caucho/contents.xsl", 579);
    out.pushElement("", "", "td", "td");
    {
      Env _xsl_arg1 = XPath.createEnv(env);
      for (Node _xsl_node = node.getFirstChild();
           _xsl_node != null;
           _xsl_node = _xsl_node.getNextSibling())
        applyNode(out, _xsl_node, _xsl_arg1, null, 0, 2147483647);
      XPath.freeEnv(_xsl_arg1);
    }
    out.popElement();
    out.popElement();
    out.disableEscaping(oldEscaping);
  }
  
  // 'defun[sum]'
  private void _xsl_template_52(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    out.setLocation("caucho/contents.xsl", 585);
    out.pushElement("", "", "tr", "tr");
    out.setLocation("caucho/contents.xsl", 585);
    out.pushElement("", "", "td", "td");
    out.setAttribute("class", "code");
    out.setAttribute("width", "40%");
     writeSummaryName(out, node); 
    out.popElement();
    out.setLocation("caucho/contents.xsl", 587);
    out.pushElement("", "", "td", "td");
    {
      Env _xsl_arg1 = XPath.createEnv(env);
      {
        Iterator _xsl_loop = _select_patterns[17].select(node, env);
        while (_xsl_loop.hasNext()) {
          applyNode(out, (Node) _xsl_loop.next(), _xsl_arg1, null, 0, 2147483647);
        }
      }
      XPath.freeEnv(_xsl_arg1);
    }
    out.popElement();
    out.popElement();
    out.disableEscaping(oldEscaping);
  }
  
  // 'section'
  private void _xsl_template_53(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    out.disableEscaping(oldEscaping);
  }
  
  // 'section'
  private void _xsl_template_54(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    if (_exprs[17].evalBoolean(node, env)) {
      out.setLocation("caucho/contents.xsl", 597);
      out.pushElement("", "", "p", "p");
      out.popElement();
      out.setLocation("caucho/contents.xsl", 598);
      out.pushElement("", "", "table", "table");
      out.setAttribute("border", "1");
      out.setAttribute("cellpadding", "3");
      out.setAttribute("cellspacing", "0");
      out.setAttribute("width", "100%");
      out.setLocation("caucho/contents.xsl", 599);
      out.pushElement("", "", "tr", "tr");
      out.setAttribute("class", "section");
      out.setLocation("caucho/contents.xsl", 599);
      out.pushElement("", "", "td", "td");
      out.setAttribute("colspan", "2");
      out.setLocation("caucho/contents.xsl", 600);
      out.pushElement("", "", "font", "font");
      out.setAttribute("size", "+2");
      out.setLocation("caucho/contents.xsl", 600);
      out.pushElement("", "", "b", "b");
      if (node instanceof Element)
        out.print(((Element) node).getAttribute("title"));
      out.popElement();
      out.popElement();
      out.popElement();
      out.popElement();
      {
        Env _xsl_arg1 = XPath.createEnv(env);
        for (Node _xsl_node = node.getFirstChild();
             _xsl_node != null;
             _xsl_node = _xsl_node.getNextSibling())
          applyNode(out, _xsl_node, _xsl_arg1, "defunsummary", 0, 2147483647);
        XPath.freeEnv(_xsl_arg1);
      }
      out.popElement();
      {
        Env _xsl_arg1 = XPath.createEnv(env);
        for (Node _xsl_node = node.getFirstChild();
             _xsl_node != null;
             _xsl_node = _xsl_node.getNextSibling())
          applyNode(out, _xsl_node, _xsl_arg1, "objsummary", 0, 2147483647);
        XPath.freeEnv(_xsl_arg1);
      }
    }
    out.disableEscaping(oldEscaping);
  }
  
  // 'objsummary'
  private void _xsl_template_55(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    {
      Env _xsl_arg1 = XPath.createEnv(env);
      {
        Iterator _xsl_loop = _select_patterns[18].select(node, env);
        while (_xsl_loop.hasNext()) {
          applyNode(out, (Node) _xsl_loop.next(), _xsl_arg1, "objsummary", 0, 2147483647);
        }
      }
      XPath.freeEnv(_xsl_arg1);
    }
    out.disableEscaping(oldEscaping);
  }
  
  // 'text()|er()'
  private void _xsl_template_56(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    out.disableEscaping(oldEscaping);
  }
  
  // 'section|subsection'
  private void _xsl_template_57(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    out.setLocation("caucho/contents.xsl", 617);
    out.pushElement("", "", "li", "li");
    out.setLocation("caucho/contents.xsl", 617);
    out.pushElement("", "", "a", "a");
    out.pushAttribute("href");
    out.write(_xsl_string40, 0, 1);
    out.print( eltHref(node) );
    out.popAttribute();
    if (node instanceof Element)
      out.print(((Element) node).getAttribute("title"));
    out.popElement();
    if (_exprs[18].evalBoolean(node, env)) {
      out.setLocation("caucho/contents.xsl", 621);
      out.pushElement("", "", "ol", "ol");
      {
        Env _xsl_arg1 = XPath.createEnv(env);
        for (Node _xsl_node = node.getFirstChild();
             _xsl_node != null;
             _xsl_node = _xsl_node.getNextSibling())
          applyNode(out, _xsl_node, _xsl_arg1, "summarylist", 0, 2147483647);
        XPath.freeEnv(_xsl_arg1);
      }
      out.popElement();
    }
    out.popElement();
    out.disableEscaping(oldEscaping);
  }
  
  // 'summarylist'
  private void _xsl_template_58(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    out.setLocation("caucho/contents.xsl", 628);
    out.pushElement("", "", "center", "center");
    out.setLocation("caucho/contents.xsl", 629);
    out.pushElement("", "", "table", "table");
    out.setAttribute("width", "90%");
    out.setAttribute("class", "toc");
    out.setAttribute("border", "3");
    out.setLocation("caucho/contents.xsl", 630);
    out.pushElement("", "", "tr", "tr");
    out.setLocation("caucho/contents.xsl", 630);
    out.pushElement("", "", "td", "td");
    out.setLocation("caucho/contents.xsl", 631);
    out.pushElement("", "", "ol", "ol");
    {
      Env _xsl_arg1 = XPath.createEnv(env);
      {
        Iterator _xsl_loop = _select_patterns[19].select(node, env);
        while (_xsl_loop.hasNext()) {
          applyNode(out, (Node) _xsl_loop.next(), _xsl_arg1, "summarylist", 0, 2147483647);
        }
      }
      XPath.freeEnv(_xsl_arg1);
    }
    out.popElement();
    out.popElement();
    out.popElement();
    out.popElement();
    out.popElement();
    out.disableEscaping(oldEscaping);
  }
  
  // 'rss'
  private void _xsl_template_59(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    {
      Env _xsl_arg1 = XPath.createEnv(env);
      for (Node _xsl_node = node.getFirstChild();
           _xsl_node != null;
           _xsl_node = _xsl_node.getNextSibling())
        applyNode(out, _xsl_node, _xsl_arg1, null, 0, 2147483647);
      XPath.freeEnv(_xsl_arg1);
    }
    out.disableEscaping(oldEscaping);
  }
  
  // 'channel'
  private void _xsl_template_60(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    out.setLocation("caucho/contents.xsl", 646);
    out.pushElement("", "", "a", "a");
    out.pushAttribute("", "href", "");
    out.valueOf(_exprs[19].evalObject(node, env));
    out.popAttribute();
    out.valueOf(_exprs[20].evalObject(node, env));
    out.popElement();
    out.setLocation("caucho/contents.xsl", 646);
    out.write(_xsl_string41, 0, 6);
    out.valueOf(_exprs[21].evalObject(node, env));
    out.setLocation("caucho/contents.xsl", 646);
    out.pushElement("", "", "br", "br");
    out.popElement();
    out.disableEscaping(oldEscaping);
  }
  
  // 'ct:box'
  private void _xsl_template_61(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    out.setLocation("caucho/format.xsl", 3);
    out.pushElement("", "", "p", "p");
    out.popElement();
    out.setLocation("caucho/format.xsl", 3);
    out.pushElement("", "", "center", "center");
    out.setLocation("caucho/format.xsl", 4);
    out.pushElement("", 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -