XSLT Examples

<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss">
    <channel>
        <title>BBC News | World | UK Edition</title>
        <link>http://news.bbc.co.uk/go/rss/-/1/hi/world/default.stm </link>
        <description>Get the latest BBC World News: international news, features and analysis from
            Africa, Americas, South Asia, Asia-Pacific, Europe and the Middle East.</description>
        <language>en-gb</language>
        <lastBuildDate>Tue, 01 Sep 2009 01:37:46 GMT</lastBuildDate>
        <copyright>Copyright: (C) British Broadcasting Corporation, see
            http://news.bbc.co.uk/1/hi/help/rss/4498287.stm for terms and conditions of
            reuse</copyright>
        <docs>http://www.bbc.co.uk/syndication/ </docs>
        <ttl>15</ttl>
        <image>
            <title>BBC News</title>
            <url>http://news.bbc.co.uk/nol/shared/img/bbc_news_120x60.gif </url>
            <link>http://news.bbc.co.uk/go/rss/-/1/hi/world/default.stm </link>
        </image>
        <item>
            <title>US general calls for Afghan changes</title>
            <description>A report by the top US general in Afghanistan says military success is
                achievable, but admits the current strategy is not working.</description>
            <link>http://news.bbc.co.uk/go/rss/-/1/hi/world/south_asia/8230017.stm </link>
            <guid isPermaLink="false">http://news.bbc.co.uk/1/hi/world/south_asia/8230017.stm</guid>
            <pubDate>Mon, 31 Aug 2009 17:27:18 GMT</pubDate>
            <category>South Asia</category>
            <media:thumbnail width="66" height="49"
                url="http://newsimg.bbc.co.uk/media/images/46297000/jpg/_46297246_007830989-1.jpg"/>
        </item>
        <item>
            <title>Poland ceremonies mark WWII start</title>
            <description>Russian and German leaders are due in Poland as it marks the 70th
                anniversary of the outbreak of World War II. </description>
            <link>http://news.bbc.co.uk/go/rss/-/1/hi/world/europe/8230678.stm </link>
            <guid isPermaLink="false">http://news.bbc.co.uk/1/hi/world/europe/8230678.stm</guid>
            <pubDate>Mon, 31 Aug 2009 23:46:09 GMT</pubDate>
            <category>Europe</category>
            <media:thumbnail width="66" height="49"
                url="http://newsimg.bbc.co.uk/media/images/46296000/jpg/_46296880_ship_1.jpg"/>
        </item>
        <item>
            <title>Kidnap girl 'bonded with captor'</title>
            <description>Kidnapped US woman Jaycee Lee Dugard bonded with her alleged captor and
                helped to run his printing firm, reports say.</description>
            <link>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/8230760.stm </link>
            <guid isPermaLink="false">http://news.bbc.co.uk/1/hi/world/americas/8230760.stm</guid>
            <pubDate>Mon, 31 Aug 2009 18:58:58 GMT</pubDate>
            <category>Americas</category>
            <media:thumbnail width="66" height="49"
                url="http://newsimg.bbc.co.uk/media/images/46297000/jpg/_46297301_jaycee_ap66i.jpg"
            />
        </item>
        <item>
            <title>Heat fuelling California wildfire</title>
            <description>Firefighters tackling a wildfire north of Los Angeles say they are making
                slow progress and the blaze remains very dangerous.</description>
            <link>http://news.bbc.co.uk/go/rss/-/1/hi/world/americas/8230540.stm </link>
            <guid isPermaLink="false">http://news.bbc.co.uk/1/hi/world/americas/8230540.stm</guid>
            <pubDate>Mon, 31 Aug 2009 20:19:25 GMT</pubDate>
            <category>Americas</category>
            <media:thumbnail width="66" height="49"
                url="http://newsimg.bbc.co.uk/media/images/46297000/jpg/_46297386_007874482-1.jpg"/>
        </item>
        <!--  removed for clarity -->
    </channel>
</rss>

Copyright © 2002-2009 David P. Heitmeyer

Bookmark and Share