只是猜测,但您可以尝试应用以下XSL样式表(取自
http://snippets.dzone.com/posts/show/1162并按照以下评论中的cherdt的建议进行修改):
@H_
607_12@<xsl:stylesheet version="1.0"
xmlns:atom="
http://www.w3
.org/2005/Atom"
xmlns:xsl="
http://www.w3
.org/1999/XSL/Transform"
xmlns:dc="
http://purl
.org/dc/elements/1.1/">
<xsl:output method="html"/>
<xsl:template match="/">
<xsl:apply-templates
SELEct="/atom:feed/atom:head"/>
<xsl:apply-templates
SELEct="/atom:feed"/>
</xsl:template>
<xsl:template match="atom:feed/atom:head">
<h3><xsl:value-of
SELEct="atom@R_953_
6964@"/></h3>
<xsl:if test="atom:tagline"><p><xsl:value-of
SELEct="atom:tagline"/></p></xsl:if>
<xsl:if test="atom:sub
title"><p><xsl:value-of
SELEct="atom:sub
title"/></p></xsl:if>
</xsl:template>
<xsl:template match="/atom:feed">
<h3><xsl:value-of
SELEct="atom@R_953_
6964@"/></h3>
<xsl:if test="atom:tagline"><p><xsl:value-of
SELEct="atom:tagline"/></p></xsl:if>
<xsl:if test="atom:sub
title"><p><xsl:value-of
SELEct="atom:sub
title"/></p></xsl:if>
<ul>
<xsl:apply-templates
SELEct="atom:entry"/>
</ul>
</xsl:template>
<xsl:template match="atom:entry">
<li>
<a href="
{atom:link[@rel='related']/@href}"
title="
{sub
String(atom:published,11)}"><xsl:value-of
SELEct="atom@R_953_
6964@"/></a>
<xsl:choose>
<xsl:when test="atom:content
!= ''">
<p><xsl:value-of
SELEct="atom:content" disable-output-escaping="yes" /></p>
</xsl:when>
<xsl:otherwise>
<p><xsl:value-of
SELEct="atom:sum
Mary" disable-output-escaping="yes" /></p>
</xsl:otherwise>
</xsl:choose>
</li>
</xsl:template>
</xsl:stylesheet>
到你收到的饲料.要转换文档,请参阅this question’s selected answer,然后您可以尝试将生成的XML分配给WebBrowser.
我猜你将WebBrowser控件指向feed,但是使用这种方法你需要使用例如Indy(检查TIdhttp及其Get()方法)下载feed,转换它,然后显示在你的控制.
请注意,以上只是一个猜测,但我相信这是一个很好的假设.
大佬总结
以上是大佬教程为你收集整理的我如何在TWebBrowser中以HTML格式显示rss feed的输出?全部内容,希望文章能够帮你解决我如何在TWebBrowser中以HTML格式显示rss feed的输出?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。