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

📄 weblog.xsl~

📁 《jsp编程起步》里面的所有源代码
💻 XSL~
字号:
<xsl:stylesheet parsed-content=false><xsl:template name='ct:weblog-edit'><% if (request.getAttribute("editor") != null) { %><hr><form method='POST' action='<%= request.getRequestURI() %>'><table><!--<tr><td>Title</td>    <td><input name=title size=40 value='<%= request.attribute.title %>'></td><tr><td>Link</td>    <td><input name=link size=40  value='<%= request.attribute.link %>'></td>--><tr><!-- <td>Description</td> -->    <td><textarea name=description cols=60 rows=10><%=  request.getAttribute("description")%></textarea></td></table><input type=hidden name='edit' value='<%= request.getAttribute("edit") %>'><input type=submit value='Add Entry'></form><% } %></xsl:template>ct:weblog<<<%@ page language='java' import='com.caucho.web.weblog.*, java.util.*' %><%  Iterator _ct_weblog_iter = WebLog.processRequest(pageContext);  while (_ct_weblog_iter.hasNext()) {    WebLog _ct_weblog = (WebLog) _ct_weblog_iter.next();%><xsl:apply-templates/><%  }%>>>ct:weblog//ct:date<<<%! QDate _ct_weblog_date = new QDate(); %><%  _ct_date.calculate(weblog.getDate(), false);  if (node.getAttribute("format") != null)    out.print(_ct_date.format(node.getAttribute("format")));  else    out.print(_ct_date.printDate());%>>>ct:webitem<<<%  Iterator _ct_webitem_iter = _ct_weblog.iterator();  for (int _ct_webitem_count = 0;       _ct_webitem_iter.hasNext();       _ct_webitem_count++) {    WebLogItem _ct_webitem = (WebLogItem) _ct_webitem_iter.next();%><xsl:apply-templates/><%    if (request.getAttribute("editor") != null && _ct_weblog.getIndex() == 1)      out.print("<\a href='", request.getRequestURI(),                "?edit=", _ct_webitem.getIndex(), "'>edit</a>");  }%>>>ct:webitem//ct:title<<<%/*  var _ct_weblog_title = _ct_weblog_item.title;  if (! _ct_weblog_title)    _ct_weblog_title = _ct_weblog_item.link;  if (_ct_weblog_item.link)    out.write("<\a href='", _ct_weblog_item.link, "'>",              _ct_weblog_title, "</a>");  else if (_ct_weblog_title)    out.write(_ct_weblog_title);*/%>>>ct:webitem//ct:description<<<%  if (_ct_weblog_item.getDescription() != null)    out.write(_ct_weblog_item.getDescription());%>>>ct:webitem//ct:date<<<%! QDate _ct_webitem_date = new QDate(); %><%  _ct_date.calculate(_ct_webitem.getDate(), false);  if (node.getAttribute("format") != null)    out.print(_ct_date.format(node.getAttribute("format")));  else    out.print(_ct_date.printDate());%>>></xsl:stylesheet>

⌨️ 快捷键说明

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