?? nightfall.xsl
字號(hào):
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fd="http://www.bradsoft.com/feeddemon/xmlns/1.0/">
<xsl:output method="html"/>
<xsl:variable name="common-styles">
<style type="text/css">
body { background-color: black; color: #F2F2F2; font: 92% Tahoma, Arial, sans-serif; margin: 12px 22px; }
a { color: #51AAFF; }
a:hover { color: #6B8ADE; text-decoration: underline; }
span.nodescription { color: #E4E4E4; font-size: smaller; }
div.newspapertitle { font-weight: bold; padding-bottom: 12px; text-transform: uppercase; }
div.channel, div.favchannel { border-bottom: 1px solid silver; margin-top: 14px}
div.channeltitle { font-weight: bold; text-transform: uppercase; margin-top: 12px; margin-bottom: 18px;}
img.channel { border: none; }
div.newsitemcontent { line-height: 140%; }
div.newsitemcontent ol, div.newsitemcontent ul { list-style-position: inside;}
div.newsitemtitle { font-weight: bold; margin-bottom: 8px }
div.newsitemfooter { color: silver; font-size: x-small; text-align: left; margin-top: 6px; margin-bottom: 18px; }
div.newsitemtitle a, div.newsitemcontent a, div.newsitemfooter a { text-decoration: none; }
</style>
</xsl:variable>
<!-- channel newspaper -->
<xsl:template match="channel">
<html xmlns:m="http://www.w3.org/1998/Math/MathML">
<head>
<title>Channel Newspaper</title>
<xsl:copy-of select="$common-styles"/>
</head>
<body>
<div class="newspapertitle">
<!-- channel title -->
<xsl:value-of select="title" disable-output-escaping="yes"/>
<!-- channel image -->
<xsl:if test="image">
<xsl:variable name="imgurl" select="image/url"/>
<xsl:variable name="imgtitle" select="image/title"/>
<xsl:variable name="imglink" select="image/link"/>
<br/>
<a href="{$imglink}"><img class="channel" src="{$imgurl}" alt="{$imgtitle}" align="bottom" style="margin-top: 8px;"/></a>
</xsl:if>
</div>
<!-- loop through each news item -->
<xsl:for-each select="item">
<xsl:sort select="fd:sortKey" data-type="number" order="descending"/>
<div class="newsitemtitle">
<xsl:variable name="itemlink" select="link"/>
<a href="{$itemlink}"><xsl:value-of select="title" disable-output-escaping="yes"/></a>
</div>
<div class="newsitemcontent">
<xsl:value-of select="description" disable-output-escaping="yes"/>
</div>
<div class="newsitemfooter">
<xsl:value-of select="pubDate"/>
</div>
</xsl:for-each>
</body>
</html>
</xsl:template>
<!-- single news item -->
<xsl:template match="items">
<html xmlns:m="http://www.w3.org/1998/Math/MathML">
<head>
<title>News Item</title>
<xsl:copy-of select="$common-styles"/>
</head>
<body>
<xsl:for-each select="item">
<div class="newsitemtitle">
<xsl:variable name="itemlink" select="link"/>
<a href="{$itemlink}"><xsl:value-of select="title" disable-output-escaping="yes"/></a>
</div>
<div class="newsitemcontent">
<xsl:value-of select="description" disable-output-escaping="yes"/>
</div>
<div class="newsitemfooter">
<!--
Important: use 'source' element here so that source channel shows for
newsbins and watches. For other channels, FeedDemon sets the source
to the channel itself.
-->
<xsl:variable name="srclink" select="source/@htmlUrl"/>
<a href="{$srclink}"><xsl:value-of select="source"/></a>
<!-- add link to comments if available -->
<xsl:if test="comments">
<xsl:variable name="commentlink" select="comments"/>
<xsl:variable name="commentimg" select="'$IMAGEDIR$comments.gif'"/>
<a href="{$commentlink}"><img src="{$commentimg}" border="0" hspace="6"/></a>
</xsl:if>
<!-- add link to enclosure if available -->
<xsl:if test="enclosure">
<xsl:variable name="enclosurelink" select="enclosure/@url"/>
<xsl:variable name="enclosureimg" select="'$IMAGEDIR$enclosure.gif'"/>
<a href="{$enclosurelink}"><img src="{$enclosureimg}" border="0" hspace="6"/></a>
</xsl:if>
<br />
<xsl:value-of select="pubDate"/>
</div>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -