📄 _default__xsl.java
字号:
XPath.freeEnv(_xsl_arg1);
}
out.disableEscaping(oldEscaping);
}
// 'eg-em'
private void _xsl_template_11(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", 84);
out.pushElement("", "", "span", "span");
out.setAttribute("class", "eg-em");
{
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, "pre", 0, 2147483647);
XPath.freeEnv(_xsl_arg1);
}
out.popElement();
out.disableEscaping(oldEscaping);
}
// 'warn'
private void _xsl_template_12(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", 88);
out.pushElement("", "", "span", "span");
out.setAttribute("class", "warn");
{
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);
}
// 'var'
private void _xsl_template_13(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", 94);
out.pushElement("", "", "span", "span");
out.setAttribute("class", "meta");
{
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);
}
// 'note'
private void _xsl_template_14(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", 98);
out.pushElement("", "", "br", "br");
out.popElement();
out.setLocation("caucho/contents.xsl", 99);
out.pushElement("", "", "b", "b");
out.setLocation("caucho/contents.xsl", 99);
out.write(_xsl_string34, 0, 6);
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.disableEscaping(oldEscaping);
}
// 'href'
private void _xsl_template_15(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", 104);
out.pushElement("", "", "a", "a");
out.pushAttribute("", "href", "");
out.valueOf(_exprs[0].evalObject(node, env));
out.popAttribute();
{
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);
}
// 'ct:img'
private void _xsl_template_16(XslWriter out, Node inputNode, Env env, String mode)
throws Exception
{
Object _xsl_tmp;
Node node = inputNode;
boolean oldEscaping = out.disableEscaping(true);
String name = ((Element) node).getAttribute("src"); PageContext page = (PageContext) out.getProperty("caucho.page.context"); ServletContext cxt = page.getServletContext(); String realPath = cxt.getRealPath("/images/" + name); com.caucho.graphics.Images img; img = com.caucho.graphics.Images.getImage(realPath); out.pushElement("img"); out.setAttribute("src", top + "images/" + name); if (img != null) { out.setAttribute("width", String.valueOf(img.getWidth())); out.setAttribute("height", String.valueOf(img.getHeight())); } out.popElement();
out.disableEscaping(oldEscaping);
}
// 'ct:anchor'
private void _xsl_template_17(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", 126);
out.pushElement("", "", "a", "a");
out.pushAttribute("", "href", "");
out.print("#");
out.valueOf(_exprs[0].evalObject(node, env));
out.popAttribute();
out.valueOf(_exprs[0].evalObject(node, env));
out.popElement();
out.disableEscaping(oldEscaping);
}
// 'callout'
private void _xsl_template_18(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", 130);
out.pushElement("", "", "div", "div");
out.setAttribute("class", "callout");
{
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);
}
// 'sidebar'
private void _xsl_template_19(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", 136);
out.pushElement("", "", "div", "div");
out.setAttribute("class", "side");
out.setLocation("caucho/contents.xsl", 137);
out.pushElement("", "", "table", "table");
out.setAttribute("cellspacing", "0");
out.setAttribute("border", "0");
out.setAttribute("width", "100%");
if (_exprs[1].evalBoolean(node, env)) {
out.setLocation("caucho/contents.xsl", 139);
out.pushElement("", "", "tr", "tr");
out.setLocation("caucho/contents.xsl", 139);
out.pushElement("", "", "th", "th");
out.setAttribute("class", "sidetitle");
if (node instanceof Element)
out.print(((Element) node).getAttribute("title"));
out.popElement();
out.popElement();
}
out.setLocation("caucho/contents.xsl", 141);
out.pushElement("", "", "tr", "tr");
out.setLocation("caucho/contents.xsl", 141);
out.pushElement("", "", "td", "td");
out.setAttribute("class", "sidebody");
{
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.disableEscaping(oldEscaping);
}
// 'text()'
private void _xsl_template_20(XslWriter out, Node inputNode, Env env, String mode)
throws Exception
{
Object _xsl_tmp;
Node node = inputNode;
boolean oldEscaping = out.disableEscaping(true);
String str = node.getNodeValue(); if (node.getPreviousSibling() == null && str.charAt(0) == '\n') str = str.substring(1); CharBuffer cb = CharBuffer.allocate(); for (int i = 0; i < str.length(); i++) { char ch = str.charAt(i); if (ch == '\n') cb.append("<br>"); else if (ch == ' ') cb.append(" "); else cb.append(ch); } out.print(cb); cb.free();
out.disableEscaping(oldEscaping);
}
// 'example'
private void _xsl_template_21(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", 188);
out.pushElement("", "", "tr", "tr");
out.setLocation("caucho/contents.xsl", 188);
out.pushElement("", "", "td", "td");
out.setAttribute("class", "example");
out.setAttribute("bgcolor", "#ffeecc");
out.setAttribute("width", "50%");
{
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, "pre", 0, 2147483647);
XPath.freeEnv(_xsl_arg1);
}
out.popElement();
out.popElement();
out.disableEscaping(oldEscaping);
}
// 'results'
private void _xsl_template_22(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", 194);
out.pushElement("", "", "td", "td");
out.setAttribute("class", "result");
out.setAttribute("bgcolor", "#ffccdd");
{
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, "pre", 0, 2147483647);
XPath.freeEnv(_xsl_arg1);
}
out.popElement();
out.setLocation("caucho/contents.xsl", 196);
out.write(_xsl_string35, 0, 6);
out.disableEscaping(oldEscaping);
}
// 'def'
private void _xsl_template_23(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", 200);
out.pushElement("", "", "td", "td");
out.setAttribute("class", "def");
out.setAttribute("bgcolor", "#cccccc");
{
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, "pre", 0, 2147483647);
XPath.freeEnv(_xsl_arg1);
}
out.popElement();
out.setLocation("caucho/contents.xsl", 202);
out.write(_xsl_string36, 0, 6);
out.disableEscaping(oldEscaping);
}
// 'egtable'
private void _xsl_template_24(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_fragment0(out, node, env));
_xsl_macro_box(out, node, _xsl_arg1);
XPath.freeEnv(_xsl_arg1);
}
out.disableEscaping(oldEscaping);
}
// 'example|ct:example'
private void _xsl_template_25(XslWriter out, Node inputNode, Env env, String mode)
throws Exception
{
Object _xsl_tmp;
Node node = inputNode;
boolean oldEscaping = out.disableEscaping(true);
if (_exprs[2].evalBoolean(node, env)) {
out.setLocation("caucho/contents.xsl", 215);
out.pushElement("", "", "a", "a");
out.pushAttribute("", "name", "");
if (node instanceof Element)
out.print(((Element) node).getAttribute("name"));
out.popAttribute();
out.popElement();
}
{
Env _xsl_arg1 = XPath.createEnv(env);
_xsl_arg1.addVar("contents", _xsl_fragment1(out, node, env));
_xsl_macro_box(out, node, _xsl_arg1);
XPath.freeEnv(_xsl_arg1);
}
out.disableEscaping(oldEscaping);
}
// 'badexample'
private void _xsl_template_26(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_fragment2(out, node, env));
_xsl_macro_box(out, node, _xsl_arg1);
XPath.freeEnv(_xsl_arg1);
}
out.disableEscaping(oldEscaping);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -