📄 style1.xsl
字号:
<?xml version="1.0" encoding="GB2312"?>
<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"/>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"/>
<title>
<xsl:value-of select="Topic/Issue/TopicName"/></title>
<link REL='Stylesheet' HREF='../Resource/Skins/csdn.css' TYPE='text/css'/>
<style>
textarea.content
{
overflow-y:visible;
border:0px;
font-size:12px;
font-family: Tahoma,Verdana,宋体,Fixedsys;
line-height:150%;
overflow:visible;
border-width:0px;
width:550px;
height:40px;
}
</style>
</head>
</html>
<table width="100%" border="0" cellpadding="3" cellspacing="0">
<tr bgcolor="#eeeeee">
<td align="right" width="80" valign="Top" >主 题:</td>
<td align="right" width="5"></td>
<td class="WithBreaks2">
<xsl:value-of select="Topic/Issue/TopicName" />
</td>
</tr>
<tr bgcolor="#eeeeee">
<td align="right">作 者:</td>
<td align="right"></td>
<td>
<xsl:element name="a">
<xsl:attribute name="href">http://message.csdn.net/SendMessage.aspx?To=<xsl:value-of select="Topic/Issue/PostUserName" /></xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<xsl:value-of select="Topic/Issue/PostUserName" /> (<xsl:value-of select="Topic/Issue/PostUserNickName" />)
</xsl:element>
</td>
</tr>
<tr bgcolor="#eeeeee">
<td align="right">等 级:</td>
<td align="right"></td>
<td>
<xsl:element name="img">
<xsl:attribute name="src">../Resource/Skins/images/rank/<xsl:value-of select="/Topic/Issue/ranknum" />.gif</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="Topic/Issue/rank" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="Topic/Issue/rank" />
</xsl:attribute>
</xsl:element>
</td>
</tr>
<tr bgcolor="#eeeeee">
<td align="right">信 誉 值:</td>
<td align="right"></td>
<td>
<xsl:value-of select="Topic/Issue/credit" />
</td>
</tr>
<tr bgcolor="#eeeeee">
<td align="right">所属社区:</td>
<td align="right"></td>
<td>
<xsl:value-of select="Topic/Issue/RoomName" />
</td>
</tr>
<tr bgcolor="#eeeeee">
<td align="right">问题点数:</td>
<td align="right"></td>
<td>
<xsl:value-of select="Topic/Issue/Point" />
</td>
</tr>
<tr bgcolor="#eeeeee">
<td align="right">回复次数:</td>
<td align="right"></td>
<td>
<xsl:value-of select="Topic/Issue/ReplyNum" />
</td>
</tr>
<tr bgcolor="#eeeeee">
<td align="right">发表时间:</td>
<td align="right"></td>
<td>
<xsl:value-of select="Topic/Issue/PostDateTime" />
</td>
</tr>
<tr height="10" bgcolor="#ffffff">
<td align="right">	</td>
<td align="right"></td>
<td>	</td>
</tr>
<tr bgcolor="#666666">
<td colspan="3" height="1">	</td>
</tr>
<tr height="10" bgcolor="#ffffff">
<td align="right">	</td>
<td align="right"></td>
<td>	</td>
</tr>
</table>
<table style="TABLE-LAYOUT: fixed" width="610" cellpadding="3">
<tr>
<td>
<xsl:element name="textarea">
<xsl:attribute name="class">content</xsl:attribute>
<xsl:attribute name="readonly">true</xsl:attribute>
<xsl:value-of select="Topic/Issue/Content" />
</xsl:element>
</td>
</tr>
</table>
<xsl:apply-templates select="Topic/Replys" />
</xsl:template>
<xsl:template match="Replys">
<xsl:for-each select="Reply">
<table width="630" border="0" cellspacing="0" cellpadding="0">
<tr class="color1" height="25">
<td width="20">				</td>
<td width="410">
<font color="#3366CC">
回复人:<b>
<xsl:element name="a">
<xsl:attribute name="href">http://message.csdn.net/SendMessage.aspx?To=<xsl:value-of select="PostUserName" /></xsl:attribute>
<xsl:attribute name="target">_blank</xsl:attribute>
<font color="#3366CC">
<xsl:value-of select="PostUserName" />(<xsl:value-of select="PostUserNickName " />)
</font>
</xsl:element>
</b>
</font>
<font color="#000000">(
<xsl:element name="img">
<xsl:attribute name="src">../Resource/Skins/images/rank/<xsl:value-of select="ranknum" />.gif</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="rank" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="rank" />
</xsl:attribute>
</xsl:element>) 信誉:<xsl:value-of select="credit" />
</font>
</td>
<td width="120">
<font color="#000000">
<xsl:value-of select="PostDateTime" />
</font>
</td>
<td width="80">
<font color="#000000">得分:</font>
<font color="#000000">
<xsl:value-of select="Point" />
</font>
</td>
</tr>
<tr>
<td bgcolor="#0066CC" height="1" colspan="4"></td>
</tr>
<tr>
<td colspan="4" height="5"></td>
</tr>
<tr>
<td>
<font color="#ffffff"> </font>
</td>
<td colspan="3">
<xsl:apply-templates select="Content" />
</td>
</tr>
<tr>
<td height="10" align="right" colspan="4">
<font color="#FF6633">
<b>
<a href="#top">
<font color="#3366CC">Top</font>
</a>
</b>
</font>
</td>
</tr>
</table>
</xsl:for-each>
</xsl:template>
<xsl:template match="Content">
<table style="TABLE-LAYOUT: fixed" width="610" cellpadding="3">
<tr>
<td>
<xsl:element name="textarea">
<xsl:attribute name="class">content</xsl:attribute>
<xsl:attribute name="readonly">true</xsl:attribute>
<xsl:apply-templates />
</xsl:element>
</td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -