📄 _default__xsl.java
字号:
/*
* Generated by Resin 1.2.0 -- Wed Nov 1 07:35:54 PST 2000
*/
package _xsl._;
import java.io.*;
import java.util.*;
import org.w3c.dom.*;
import org.xml.sax.*;
import com.caucho.util.*;
import com.caucho.xml.*;
import com.caucho.xpath.*;
import com.caucho.xsl.*;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import com.caucho.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.xml.sax.*;
import com.caucho.web.*;
import com.caucho.vfs.*;
import com.caucho.server.http.*;
import javax.servlet.jsp.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class _default__xsl extends JavaStylesheet {
// '*|@*'
private void _xsl_template_(XslWriter out, Node inputNode, Env env, String mode)
throws Exception
{
Object _xsl_tmp;
Node node = inputNode;
boolean oldEscaping = out.disableEscaping(true);
out.pushCopy(node);
{
Env _xsl_arg1 = XPath.createEnv(env);
{
Iterator _xsl_loop = _select_patterns[0].select(node, env);
while (_xsl_loop.hasNext()) {
applyNode(out, (Node) _xsl_loop.next(), _xsl_arg1, null, 0, 2147483647);
}
}
XPath.freeEnv(_xsl_arg1);
}
out.popCopy(node);
out.disableEscaping(oldEscaping);
}
int unique = 0; /** * Calculate a runtime attribute or a string. */ String _ct_rta(Node node, String attr) { Element elt = (Element) node; String value = elt.getAttribute(attr); if (value == null) return "\"\""; if (value.startsWith("<%=") && value.endsWith("%>")) return value.substring(3, value.length() - 2); else return "\"" + value + "\""; }
// 'ct:if[@expr]'
private void _xsl_template_0(XslWriter out, Node inputNode, Env env, String mode)
throws Exception
{
Object _xsl_tmp;
Node node = inputNode;
boolean oldEscaping = out.disableEscaping(true);
out.setLocation("caucho/control.xsl", 32);
out.write(_xsl_string0, 0, 7);
if (node instanceof Element)
out.print(((Element) node).getAttribute("expr"));
out.setLocation("caucho/control.xsl", 32);
out.write(_xsl_string1, 0, 9);
{
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.setLocation("caucho/control.xsl", 33);
out.write(_xsl_string2, 0, 8);
out.disableEscaping(oldEscaping);
}
// 'ct:if[@param]'
private void _xsl_template_1(XslWriter out, Node inputNode, Env env, String mode)
throws Exception
{
Object _xsl_tmp;
Node node = inputNode;
boolean oldEscaping = out.disableEscaping(true);
out.setLocation("caucho/control.xsl", 46);
out.write(_xsl_string3, 0, 8);
out.print( _ct_rta(node, "value") );
out.setLocation("caucho/control.xsl", 46);
out.write(_xsl_string4, 0, 30);
out.print( _ct_rta(node, "param") );
out.setLocation("caucho/control.xsl", 46);
out.write(_xsl_string5, 0, 11);
{
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.setLocation("caucho/control.xsl", 47);
out.write(_xsl_string6, 0, 8);
out.disableEscaping(oldEscaping);
}
// 'ct:switch[@select]'
private void _xsl_template_2(XslWriter out, Node inputNode, Env env, String mode)
throws Exception
{
Object _xsl_tmp;
Node node = inputNode;
boolean oldEscaping = out.disableEscaping(true);
String id = "_ct_tmp" + unique++;
out.setLocation("caucho/control.xsl", 62);
out.write(_xsl_string7, 0, 11);
out.print( id );
out.setLocation("caucho/control.xsl", 63);
out.write(_xsl_string8, 0, 3);
out.print( _ct_rta(node, "select") );
out.setLocation("caucho/control.xsl", 63);
out.write(_xsl_string9, 0, 13);
out.print( id );
out.setLocation("caucho/control.xsl", 65);
out.write(_xsl_string10, 0, 17);
{
Env _xsl_arg1 = XPath.createEnv(env);
{
Iterator _xsl_loop = _select_patterns[1].select(node, env);
while (_xsl_loop.hasNext()) {
applyNode(out, (Node) _xsl_loop.next(), _xsl_arg1, null, 0, 2147483647);
}
}
XPath.freeEnv(_xsl_arg1);
}
out.setLocation("caucho/control.xsl", 66);
out.write(_xsl_string11, 0, 7);
{
Iterator _xsl_iter0 = _select_patterns[2].select(node, env);
while (_xsl_iter0.hasNext()) {
Node node1 = node;
node = (Node) _xsl_iter0.next();
out.setLocation("caucho/control.xsl", 69);
out.write(_xsl_string12, 0, 12);
out.print( id );
out.setLocation("caucho/control.xsl", 70);
out.write(_xsl_string13, 0, 8);
out.print( _ct_rta(node1, "value") );
out.setLocation("caucho/control.xsl", 70);
out.write(_xsl_string14, 0, 10);
{
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.setLocation("caucho/control.xsl", 71);
out.write(_xsl_string15, 0, 6);
node = node1;
}
}
out.setLocation("caucho/control.xsl", 73);
out.write(_xsl_string16, 0, 2);
{
Iterator _xsl_iter1 = _select_patterns[3].select(node, env);
while (_xsl_iter1.hasNext()) {
Node node1 = node;
node = (Node) _xsl_iter1.next();
out.setLocation("caucho/control.xsl", 75);
out.write(_xsl_string17, 0, 15);
{
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.setLocation("caucho/control.xsl", 77);
out.write(_xsl_string18, 0, 6);
node = node1;
}
}
out.setLocation("caucho/control.xsl", 79);
out.write(_xsl_string19, 0, 3);
out.disableEscaping(oldEscaping);
}
// 'ct:enum'
private void _xsl_template_3(XslWriter out, Node inputNode, Env env, String mode)
throws Exception
{
Object _xsl_tmp;
Node node = inputNode;
boolean oldEscaping = out.disableEscaping(true);
out.setLocation("caucho/control.xsl", 92);
out.write(_xsl_string20, 0, 33);
String id = "_ct_tmp" + unique++;
out.setLocation("caucho/control.xsl", 93);
out.write(_xsl_string21, 0, 19);
out.print( id );
out.setLocation("caucho/control.xsl", 95);
out.write(_xsl_string22, 0, 3);
if (node instanceof Element)
out.print(((Element) node).getAttribute("expr"));
out.setLocation("caucho/control.xsl", 95);
out.write(_xsl_string23, 0, 13);
out.print( id );
out.setLocation("caucho/control.xsl", 96);
out.write(_xsl_string24, 0, 27);
if (node instanceof Element)
out.print(((Element) node).getAttribute("type"));
out.setLocation("caucho/control.xsl", 97);
out.write(_xsl_string25, 0, 1);
if (node instanceof Element)
out.print(((Element) node).getAttribute("name"));
out.setLocation("caucho/control.xsl", 97);
out.write(_xsl_string26, 0, 4);
if (node instanceof Element)
out.print(((Element) node).getAttribute("type"));
out.setLocation("caucho/control.xsl", 97);
out.write(_xsl_string27, 0, 2);
out.print( id );
out.setLocation("caucho/control.xsl", 97);
out.write(_xsl_string28, 0, 21);
{
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.setLocation("caucho/control.xsl", 99);
out.write(_xsl_string29, 0, 10);
out.disableEscaping(oldEscaping);
}
String href(String name){ if (name == null) return null; CharBuffer cb = CharBuffer.allocate(); for (int i = 0; i < name.length(); i++) { char ch = name.charAt(i); if (Character.isWhitespace(ch)) cb.append("_"); else cb.append(ch); } return cb.close();}String eltHref(Node node){ Element elt = (Element) node; String name = elt.getAttribute("name"); if (name.equals("")) name = elt.getAttribute("title"); return href(name);}
// 'resin'
private void _xsl_template_4(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", 48);
out.write(_xsl_string30, 0, 5);
out.disableEscaping(oldEscaping);
}
// 'resintm'
private void _xsl_template_5(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", 52);
out.write(_xsl_string31, 0, 5);
out.setLocation("caucho/contents.xsl", 52);
out.pushElement("", "", "sup", "sup");
out.setLocation("caucho/contents.xsl", 52);
out.write(_xsl_string32, 0, 2);
out.popElement();
out.disableEscaping(oldEscaping);
}
// 'resinscript'
private void _xsl_template_6(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", 56);
out.write(_xsl_string33, 0, 10);
out.disableEscaping(oldEscaping);
}
// 'ed'
private void _xsl_template_7(XslWriter out, Node inputNode, Env env, String mode)
throws Exception
{
Object _xsl_tmp;
Node node = inputNode;
boolean oldEscaping = out.disableEscaping(true);
out.disableEscaping(oldEscaping);
}
// 'eg'
private void _xsl_template_8(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", 68);
out.pushElement("", "", "span", "span");
out.setAttribute("class", "example");
{
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);
}
// 'eg-em'
private void _xsl_template_9(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", 74);
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, null, 0, 2147483647);
XPath.freeEnv(_xsl_arg1);
}
out.popElement();
out.disableEscaping(oldEscaping);
}
// '*'
private void _xsl_template_10(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[4].select(node, env);
while (_xsl_loop.hasNext()) {
applyNode(out, (Node) _xsl_loop.next(), _xsl_arg1, null, 0, 2147483647);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -