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

📄 txna.xsl

📁 TXNA(Terac XML News Aggregator) is a powerful and easy to use XML News Aggregator written in Java.
💻 XSL
字号:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output
 method="xml" 
 doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" 
 doctype-public="-//W3C//DTD XHTML 1.1//EN"/>
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl">
 <head>
  <title><xsl:value-of select="rss/channel/title"/></title>
  <link href="txna.css" type="text/css" rel="stylesheet"/>
  <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="txna.xml" />
 </head>
  <xsl:apply-templates select="rss/channel"/>
</html>
</xsl:template>

<xsl:template match="rss/channel">
 <body xmlns="http://www.w3.org/1999/xhtml">
 <div id="container">	
	<div id="banner">
		<div id="siteTitle"><a href="{link}"><xsl:value-of select="title"/></a></div>  
		<div id="siteDescription"><xsl:value-of disable-output-escaping="yes" select="description"/></div>
	</div> 
	<div id="main">  
		<div id="info">Last aggregated time: <xsl:value-of select="lastBuildDate"/></div>

		<xsl:for-each select="item">
		<div id="item">
			<div id="title"><img src="txna_item.gif"/><a href="{link}" target="_blank"><xsl:value-of select="title"/></a></div>
			<div id="pubDate"><xsl:value-of select="pubDate"/></div>
			<div id="description"><xsl:value-of select="description"/></div>
		</div>
		</xsl:for-each>
	</div> 
	<div id="copyright">Powered by <a href="http://www.terac.com" target="_blank">TXNA 1.0</a>, Copyright (C) 2003-2005 <a href="http://www.terac.com" target="_blank">Terac</a>.</div>
 </div>
 </body>
</xsl:template>
</xsl:stylesheet>

⌨️ 快捷键说明

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