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

📄 kuro5hin.xslt

📁 beereader source code
💻 XSLT
字号:
<xsl:stylesheet version='1.0' 
		xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
		xmlns:content = 'http://purl.org/rss/1.0/modules/content/'
		xmlns:xhtml='http://www.w3.org/1999/xhtml'
		xmlns:slash='http://purl.org/rss/1.0/modules/slash/' 
		xmlns:dc='http://purl.org/dc/elements/1.1/' >

		<xsl:output method='xml' indent='yes' /> 

		<xsl:template match='/'>
		<html><head><title><xsl:value-of select='//item/title'/></title></head>
	<body>
	<table cellpadding="1" cellspacing="0" border="0" bgcolor="#006699">
  	<tr>
    	  <td width="100%">
		<table width="100%" border="0" cellpadding="2" cellspacing="0"><tr>
	<td valign="top" bgcolor="#eeeeee">	
	<font
	face="verdana, arial, helvetica, sans-serif" size="2">
	<b><xsl:value-of  disable-output-escaping='yes' select='//item/title'/></b></font><br />
	<xsl:choose>
	
				<xsl:when test='//item/author'>
	                         <font	face="verdana, arial, helvetica, sans-serif" size="2">
					by <xsl:value-of select='//item/author'/>
	                         </font>
				</xsl:when>
				<xsl:when test='//item/dc:creator'>
	                          <font	face="verdana, arial, helvetica, sans-serif" size="2">
					by <xsl:value-of select='//item/dc:creator'/>
	                          </font>
				</xsl:when>				
            </xsl:choose>
	<xsl:text>&#160;</xsl:text> on <xsl:value-of select='//item/pubDate'/><br />
	</td>
</tr></table>
</td></tr></table>
<br />

 <xsl:choose>
				<xsl:when test='//item/xhtml:body'>
					<xsl:copy-of select='//item/xhtml:body'/>
				</xsl:when>
				<xsl:when test='//item/content:encoded'>
					<xsl:value-of  disable-output-escaping='yes' select='//item/content:encoded'/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of disable-output-escaping='yes' select='//item/description'/>
				</xsl:otherwise>
            </xsl:choose>
<p>
[
<a href='{//item/link}'>Read on...</a> 
<xsl:if test='//item/comments'> | 
 <xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
 <xsl:text disable-output-escaping='yes'>&lt;a href='</xsl:text><xsl:value-of  disable-output-escaping='yes' select='//item/comments'/><xsl:text disable-output-escaping='yes'>'&gt;</xsl:text>
 Reply To This
 <xsl:text disable-output-escaping='yes'>&lt;/a></xsl:text>				
 </xsl:if>	
]
</p>
		
</body></html>
</xsl:template>
</xsl:stylesheet>

⌨️ 快捷键说明

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