2009-09-30 1 views
0

나는 "알 수없는 오류가 발생했습니다"점점 계속 난 내 XSLT이를하려고하면XSL - FF 매체에 알 수없는 오류 : 컨텐츠/@ URL이

<table class="TEDtalks"> 

    <xsl:for-each select="/rss/channel/item"> 
    <tr> 

    <td><xsl:value-of select="title"/></td> 

    <td> 

    <xsl:value-of select="media:content/@url" /> 
    </td> 

    </tr> 
    </xsl:for-each> 
</table> 

XML을

<rss> 
<channel> 
<item> 

        <title>TEDTalks : Karen Armstrong: Let's revive the Golden Rule - Karen Armstrong (2009)</title> 
        <itunes:author>Karen Armstrong</itunes:author> 
        <description>Weeks from the Charter for Compassion launch, Karen Armstrong looks at religion's role in the 21st century: Will its dogmas divide us? Or will it unite us for common good? She reviews the catalysts that can drive the world's faiths to rediscover the Golden Rule.&lt;img src="http://feeds.feedburner.com/~r/TEDTalks_video/~4/th6FBgvV22o" height="1" width="1"/&gt;</description> 
        <itunes:subtitle>Karen Armstrong: Let's revive the Golden Rule</itunes:subtitle> 
        <itunes:summary><![CDATA[Weeks from the Charter for Compassion launch, Karen Armstrong looks at religion's role in the 21st century: Will its dogmas divide us? Or will it unite us for common good? She reviews the catalysts that can drive the world's faiths to rediscover the Golden Rule.]]></itunes:summary> 

        <link>http://feedproxy.google.com/~r/TEDTalks_video/~3/th6FBgvV22o/647</link> 

        <guid isPermaLink="false">http://video.ted.com/talks/podcast/KarenArmstrong_2009G.mp4</guid> 
        <pubDate>Tue, 29 Sep 2009 12:46:00 -0500</pubDate> 
        <category>Higher Education</category> 
        <itunes:explicit>no</itunes:explicit> 
        <itunes:duration>00:09:54</itunes:duration> 
        <itunes:keywords>TED</itunes:keywords> 

        <media:content url="http://feedproxy.google.com/~r/TEDTalks_video/~5/XT8k_DqlzGc/KarenArmstrong_2009G.mp4" fileSize="33726021" type="video/mp4" /> 

답변

0

당신은 media: XML 네임 스페이스 접두사를 정의 적이 있습니까? 예컨대 :

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
       xmlns:media="http://search.yahoo.com/mrss/" 
       ... 
관련 문제