我试图对这种类型的RSS使用XSLT转换(下面),但没有结果。这是为什么 ?无法正确使用XSLT进行转换
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:gd="http://schemas.google.com/g/2005" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/"CUACQXg6fyp7ImA9WhdUFUo."">
和它的结构是
<feed>
tags tags tags like <title></title>
<entry><published></published><title></title><content></content>....</entry>
</feed>
XSLT
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="identity.xsl"/>
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*" />
</xsl:copy>
</xsl:template>
<xsl:template match="entry"/>
</xsl:stylesheet>
这是一个常见问题解答。重复http://stackoverflow.com/questions/6111202/select-default-namespace-in-xpath-with-htmlunit。另外,“无结果”令人困惑......它听起来像是“没有输出”,但应该有一个结果文档等同于输入文档,对吗? – LarsH