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

📄 _default__xsl.java

📁 《jsp编程起步》里面的所有源代码
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
  }
  
  // 'box'
  private void _xsl_template_27(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);
      _xsl_arg1.addVar("contents", _xsl_fragment3(out, node, env));
      _xsl_macro_box(out, node, _xsl_arg1);
      XPath.freeEnv(_xsl_arg1);
    }
    out.disableEscaping(oldEscaping);
  }
  
  // 'results'
  private void _xsl_template_28(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);
      _xsl_arg1.addVar("contents", _xsl_fragment4(out, node, env));
      _xsl_macro_box(out, node, _xsl_arg1);
      XPath.freeEnv(_xsl_arg1);
    }
    out.disableEscaping(oldEscaping);
  }
  
  // 'example[example|results|def]'
  private void _xsl_template_29(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);
      _xsl_arg1.addVar("contents", _xsl_fragment5(out, node, env));
      _xsl_macro_box(out, node, _xsl_arg1);
      XPath.freeEnv(_xsl_arg1);
    }
    out.disableEscaping(oldEscaping);
  }
  
  // 'deftable'
  private void _xsl_template_30(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", 278);
    out.pushElement("", "", "p", "p");
    out.popElement();
    out.setLocation("caucho/contents.xsl", 278);
    out.pushElement("", "", "center", "center");
    out.setLocation("caucho/contents.xsl", 279);
    out.pushElement("", "", "table", "table");
    out.setAttribute("width", "80%");
    out.setAttribute("cellpadding", "2");
    out.setAttribute("cellspacing", "0");
    out.setAttribute("class", "deftable");
    out.setAttribute("border", "");
    if (_exprs[3].evalBoolean(node, env)) {
      out.setLocation("caucho/contents.xsl", 281);
      out.pushElement("", "", "caption", "caption");
      out.setLocation("caucho/contents.xsl", 281);
      out.pushElement("", "", "font", "font");
      out.setAttribute("size", "+1");
      if (node instanceof Element)
        out.print(((Element) node).getAttribute("title"));
      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, null, 0, 2147483647);
      XPath.freeEnv(_xsl_arg1);
    }
    out.popElement();
    out.popElement();
    out.disableEscaping(oldEscaping);
  }
  
  // 'def'
  private void _xsl_template_31(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);
      _xsl_arg1.addVar("contents", _xsl_fragment6(out, node, env));
      _xsl_macro_box(out, node, _xsl_arg1);
      XPath.freeEnv(_xsl_arg1);
    }
    out.disableEscaping(oldEscaping);
  }
  
  // 'toc|navigation'
  private void _xsl_template_32(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", 301);
    out.pushElement("", "", "center", "center");
    out.setLocation("caucho/contents.xsl", 302);
    out.pushElement("", "", "table", "table");
    out.setAttribute("width", "80%");
    out.setAttribute("class", "toc");
    out.setLocation("caucho/contents.xsl", 302);
    out.pushElement("", "", "tr", "tr");
    out.setLocation("caucho/contents.xsl", 302);
    out.pushElement("", "", "td", "td");
    out.setLocation("caucho/contents.xsl", 303);
    out.pushElement("", "", "ul", "ul");
    {
      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.popElement();
    out.popElement();
    out.disableEscaping(oldEscaping);
  }
  
  // 'page'
  private void _xsl_template_33(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", 312);
    out.pushElement("", "", "li", "li");
    out.setLocation("caucho/contents.xsl", 312);
    out.pushElement("", "", "a", "a");
    out.pushAttribute("", "href", "");
    if (node instanceof Element)
      out.print(((Element) node).getAttribute("href"));
    out.popAttribute();
    if (node instanceof Element)
      out.print(((Element) node).getAttribute("name"));
    out.popElement();
    out.popElement();
    out.disableEscaping(oldEscaping);
  }
  
  // 'page[page]'
  private void _xsl_template_34(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", 317);
    out.pushElement("", "", "li", "li");
    out.setLocation("caucho/contents.xsl", 317);
    out.pushElement("", "", "a", "a");
    out.pushAttribute("", "href", "");
    if (node instanceof Element)
      out.print(((Element) node).getAttribute("href"));
    out.popAttribute();
    if (node instanceof Element)
      out.print(((Element) node).getAttribute("name"));
    out.popElement();
    out.setLocation("caucho/contents.xsl", 318);
    out.pushElement("", "", "ul", "ul");
    {
      Env _xsl_arg1 = XPath.createEnv(env);
      {
        Iterator _xsl_loop = _select_patterns[5].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);
  }
  
  // 'columns'
  private void _xsl_template_35(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", 328);
    out.pushElement("", "", "table", "table");
    out.setAttribute("cellpadding", "0");
    out.setAttribute("width", "100%");
    out.setLocation("caucho/contents.xsl", 329);
    out.pushElement("", "", "tr", "tr");
    {
      Env _xsl_arg1 = XPath.createEnv(env);
      {
        Iterator _xsl_loop = _select_patterns[6].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);
  }
  
  // 'columns[@class]'
  private void _xsl_template_36(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", 337);
    out.pushElement("", "", "table", "table");
    out.setAttribute("cellpadding", "0");
    out.pushAttribute("", "class", "");
    if (node instanceof Element)
      out.print(((Element) node).getAttribute("class"));
    out.popAttribute();
    out.setAttribute("width", "100%");
    out.setLocation("caucho/contents.xsl", 338);
    out.pushElement("", "", "tr", "tr");
    {
      Env _xsl_arg1 = XPath.createEnv(env);
      {
        Iterator _xsl_loop = _select_patterns[7].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);
  }
  
  // 'column'
  private void _xsl_template_37(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", 345);
    out.pushElement("", "", "td", "td");
    out.setAttribute("width", "50%");
    out.setAttribute("valign", "top");
    {
      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.disableEscaping(oldEscaping);
  }
  
  // 'newsitem'
  private void _xsl_template_38(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", 353);
    out.pushElement("", "", "p", "p");
    out.popElement();
    if (_exprs[4].evalBoolean(node, env)) {
      out.setLocation("caucho/contents.xsl", 355);
      out.pushElement("", "", "em", "em");
      if (node instanceof Element)
        out.print(((Element) node).getAttribute("date"));
      out.popElement();
      out.setLocation("caucho/contents.xsl", 355);
      out.write(_xsl_string37, 0, 3);
    }
    {
      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);
  }
  
  // 'newsitem[1]'
  private void _xsl_template_39(XslWriter out, Node inputNode, Env env, String mode)
    throws Exception
  {
    Object _xsl_tmp;
    Node node = inputNode;
    boolean oldEscaping = out.disableEscaping(true);
    if (_exprs[5].evalBoolean(node, env)) {
      out.setLocation("caucho/contents.xsl", 362);
      out.pushElement("", "", "em", "em");
      if (node instanceof Element)
        out.print(((Element) node).getAttribute("date"));
      out.popElement();
      out.setLocation("caucho/contents.xsl", 362);
      out.write(_xsl_string38, 0, 3);
    }
    {
      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);
  }
  
  String getVersion(String version){  if (version == null)    return null;  else if (version.equals("ecma"))    return null;  else if (version.equals("js1.2"))    return "JavaScript 1.2";  else if (version.equals("js1.3"))    return "JavaScript 1.3";  else if (version.equals("resin1.0"))    return "Resin 1.0";  else if (version.equals("resin1.1"))    return "Resin 1.1";  else if (version.equals("resin1.2"))    return "Resin 1.2";  else    return version;}
  // 'sum'
  private void _xsl_template_40(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);
  }
  
  // 'teaser'
  private void _xsl_template_41(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", 396);
    out.pushElement("", "", "p", "p");
    out.popElement();
    if (_exprs[6].evalBoolean(node, env)) {
      out.setLocation("caucho/contents.xsl", 398);
      out.pushElement("", "", "h3", "h3");
      if (node instanceof Element)
        out.print(((Element) node).getAttribute("title"));
      out.popElement();

⌨️ 快捷键说明

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