将XSL应用到RSS源

将XSL应用到RSS源

问题描述:

我想在我的网站上显示来自Feedburner的RSS源,但是我希望能够将XSLT应用到它。将XSL应用到RSS源

是否可以在XSLT中获取URL而不是将链接添加到XML中的样式?

您可以使用document函数在样式表中加载外部xml文件。

(评论后可进行编辑)

<xsl:template match="/"> 
    <xsl:apply-templates select="document("myurl.xml")/root" mode="extern"/> 
</xsl:template> 

<xsl:template match="root" mode="extern"> 
Hello world 
</xsl:template> 
+0

你能提供如何使用它来获取一个URL的例子吗? – CLiown 2009-09-30 18:37:17