RSSフィードをレンダリングするための小さなカスタムXSLファイルを作成しています。内容は次のように基本的なものです。ソースXMLにフィード定義の 'xmlns = "http://www.w3.org/2005/Atom"という行が含まれている場合を除いて、これは完璧に機能します。これにどのように対処しますか?私は、この事件をどのように説明するのかを知るために、名前空間に慣れていません。AtomフィードのXSLの作成
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:template match="/" >
<html xsl:version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<body style="font-family:Arial;font-size:12pt;background-color:#EEEEEE">
<xsl:for-each select="feed/entry">
<div style="background-color:teal;color:white;padding:4px">
<span style="font-weight:bold"><xsl:value-of select="title"/></span> - <xsl:value-of select="author"/>
</div>
<div style="margin-left:20px;margin-bottom:1em;font-size:10pt">
<b><xsl:value-of select="published" /> </b>
<xsl:value-of select="summary" disable-output-escaping="yes" />
</div>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
XHTMLは安全であると確信しています。これは内部ソースからのものです。助けてくれてありがとう。 –