📄 csdn.xsl
字号:
<?xml version="1.0" encoding="GB2312"?>
<!--
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="gb2312" version="4.0"/>
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="text()" >
<xsl:value-of/>
</xsl:template>
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312"/>
<title><xsl:value-of select="Topic/Issue/TopicName"/></title>
<link REL='Stylesheet' HREF='../csdn.css' TYPE='text/css'/>
</head>
<body>
<div id="divFrame">
<table width="100%" cellspacing="2" cellpadding="2" border="0">
<tr>
<td class="maintitle"><xsl:value-of select="Topic/Issue/TopicName"/></td>
</tr>
</table>
<table class="forumline" width="100%" cellspacing="1" cellpadding="3" border="0" id="maintable">
<tr align="right">
<td class="catHead" colspan="2" height="28"><span class="nav"><a href="javascript:history.go(-1)" class="nav">Back To List</a></span></td>
</tr>
<tr>
<th class="thLeft" width="150" height="26" nowrap="nowrap">作者信息</th>
<th class="thRight" nowrap="nowrap">帖子内容</th>
</tr>
<tr class="row1">
<td width="150" align="left" valign="top">
<div class="name"><span style="font-weight:normal">作者:</span><xsl:value-of select="Topic/Issue/PostUserName"/></div>
<div class="nickname">昵称:<xsl:value-of select="Topic/Issue/PostUserNickName"/></div>
<div>信誉:<xsl:value-of select="Topic/Issue/credit"/></div>
等级:<xsl:value-of select="Topic/Issue/ranknum"/><div name="rankstar"><xsl:value-of select="Topic/Issue/ranknum"/></div><br />
<div class="postinfo">问题点数:<xsl:value-of select="Topic/Issue/Point"/></div>
<div class="postinfo">回复贴数:<xsl:value-of select="Topic/Issue/ReplyNum"/></div>
</td>
<td width="100%" height="28" valign="top"><xsl:apply-templates select="Topic/Issue/Content" /></td>
</tr>
<tr class="row1">
<td width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">Back to top</a></span></td>
<td height="28"><div class="postdetails"><b>PostDateTime:</b> <xsl:value-of select="Topic/Issue/PostDateTime"/> <b>PostUserId:</b> <xsl:value-of select="Topic/Issue/PostUserId"/> <b>TopicId:</b> <xsl:value-of select="Topic/Issue/TopicId"/></div></td>
</tr>
<tr>
<td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
<xsl:apply-templates select="Topic/Replys"/>
<tr align="right">
<td class="catBottom" colspan="2" height="28"><span class="nav"><a href="javascript:history.go(-1)" class="nav">Back To List</a></span></td>
</tr>
</table>
<div id="divCopy">
CSDN 论坛精华[精装版] 作者:王嘉[VaJa] Email: <a href="mailto:vaja@eyou.com">vaja@eyou.com</a> 2002.10
</div>
</div>
</body>
<script language="JavaScript" src="../style/csdn.js"></script>
</html>
</xsl:template>
<xsl:template match="Replys" >
<xsl:for-each select="Reply" >
<tr class="row1">
<td width="150" align="left" valign="top">
<div class="name"><span style="font-weight:normal">作者:</span><xsl:value-of select="PostUserName"/></div>
<div class="nickname">昵称:<xsl:value-of select="PostUserNickName"/></div>
<div>信誉:<xsl:value-of select="credit"/></div>
等级:<xsl:value-of select="ranknum"/><div name="rankstar"><xsl:value-of select="ranknum"/></div><br />
<div name="getPoint">得分点数:<xsl:value-of select="Point"/></div>
</td>
<td height="28" valign="top"><xsl:apply-templates select="Content" /></td>
</tr>
<tr class="row1">
<td width="150" align="left" valign="middle"><span class="nav"><a href="#top" class="nav">Back to top</a></span></td>
<td height="28"><div class="postdetails"><b>PostDateTime:</b> <xsl:value-of select="PostDateTime"/> <b>PostUserId:</b> <xsl:value-of select="PostUserId"/> <b>ReplyID:</b> <xsl:value-of select="ReplyID"/></div></td>
</tr>
<tr>
<td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
</tr>
</xsl:for-each>
</xsl:template>
<xsl:template match="Content">
<xsl:element name="textarea">
<xsl:attribute name="class">content</xsl:attribute>
<xsl:attribute name="readonly">true</xsl:attribute>
<xsl:apply-templates />
</xsl:element>
</xsl:template>
<xsl:template match="br">
<br/>
</xsl:template>
</xsl:stylesheet>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -