| 1 |
<?xml version="1.0" encoding="UTF-8"?>
|
| 2 |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
| 3 |
<xsl:output method="html" indent="no" />
|
| 4 |
<xsl:template match = "/">
|
| 5 |
<HTML>
|
| 6 |
<HEAD><TITLE>枫林在线-RSS</TITLE></HEAD>
|
| 7 |
<style>
|
| 8 |
table{
|
| 9 |
width:80%;
|
| 10 |
word-wrap:break-word;
|
| 11 |
word-break:break-all;
|
| 12 |
}
|
| 13 |
tr,td{
|
| 14 |
padding-left: 10px;
|
| 15 |
font-size: 14px;
|
| 16 |
padding-bottom: 10px;
|
| 17 |
margin: 20px;
|
| 18 |
line-height: 150%;
|
| 19 |
padding-top: 10px;
|
| 20 |
text-align: left;
|
| 21 |
border-bottom: 1px solid #e5e5e5;
|
| 22 |
border-right: 1px solid #e5e5e5;
|
| 23 |
border-top: 1px solid #e5e5e5;
|
| 24 |
border-left: 1px solid #e5e5e5;
|
| 25 |
}
|
| 26 |
</style>
|
| 27 |
<BODY><xsl:apply-templates select="rss"/></BODY>
|
| 28 |
</HTML>
|
| 29 |
</xsl:template>
|
| 30 |
<!--主内容-->
|
| 31 |
<xsl:template match = "channel" >
|
| 32 |
<table align="center" style="background-color:#e5e5e5;">
|
| 33 |
<tr><td style="text-align:center">
|
| 34 |
<h1><xsl:value-of select="title"/></h1>
|
| 35 |
<a target="_blank"><xsl:attribute name="href"><xsl:value-of select="link" /></xsl:attribute><xsl:value-of select="link"/></a><br />
|
| 36 |
</td></tr>
|
| 37 |
</table>
|
| 38 |
<!--item项-->
|
| 39 |
<table align="center">
|
| 40 |
<xsl:for-each select="item">
|
| 41 |
<tr><td>
|
| 42 |
<b><xsl:value-of select="title" disable-output-escaping="yes"/></b> (<xsl:value-of select="pubDate"/>)<br />
|
| 43 |
<a target="_blank"><xsl:attribute name="href"><xsl:value-of select="link" /></xsl:attribute><xsl:value-of select="link"/></a><p />
|
| 44 |
<xsl:value-of select="description" disable-output-escaping="yes"/>
|
| 45 |
</td></tr>
|
| 46 |
</xsl:for-each>
|
| 47 |
</table>
|
| 48 |
<table align="center" style="background-color:#e5e5e5;">
|
| 49 |
<tr><td style="text-align:center">
|
| 50 |
<xsl:value-of select="copyright"/>
|
| 51 |
</td></tr>
|
| 52 |
</table>
|
| 53 |
</xsl:template>
|
| 54 |
</xsl:stylesheet> |