<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'Suggestions for why this XSLT isn't working?' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'Suggestions for why this XSLT isn't working?' posted on the 'XML Development' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 25 May 2013 08:07:36 -0700</pubDate>
    <lastBuildDate>Sat, 25 May 2013 08:07:36 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>Suggestions for why this XSLT isn't working?</title>
      <link>http://www.programmersheaven.com/mb/xml/415260/415260/suggestions-for-why-this-xslt-isnt-working/</link>
      <description>I'm a relative beginner when it comes to XSLT but I thought this would be a fairly straightforward example. I'm just trying to render the items from an RSS feed as a simple unordered list &amp;lt;ul&amp;gt;. It doesn't, however, return any results and I can't work out why.&lt;br /&gt;
&lt;br /&gt;
here's the xslt code &lt;br /&gt;
&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;?xml version="1.0" encoding="ISO-8859-1"?&amp;gt;
&amp;lt;!-- Edited by XMLSpy® --&amp;gt;
&amp;lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&amp;gt;

&amp;lt;xsl:template match="/"&amp;gt;
  &amp;lt;html&amp;gt;
  &amp;lt;body&amp;gt;
  &amp;lt;h2&amp;gt;DLG Circulars&amp;lt;/h2&amp;gt;
    &amp;lt;ul&amp;gt;
       &amp;lt;xsl:for-each select="rss/channel/item/"&amp;gt;
       &amp;lt;li&amp;gt;&amp;lt;a href="&amp;lt;xsl:value-of select="link"/&amp;gt;"&amp;gt;
             &amp;lt;xsl:value-of select="title"/&amp;gt;&amp;lt;/a&amp;gt;
             &amp;lt;br /&amp;gt;
             &amp;lt;xsl:value-of select="description"/&amp;gt;
       &amp;lt;/li&amp;gt;
       &amp;lt;/xsl:for-each&amp;gt;
    &amp;lt;/ul&amp;gt;
  &amp;lt;/body&amp;gt;
  &amp;lt;/html&amp;gt;
&amp;lt;/xsl:template&amp;gt;
&amp;lt;/xsl:stylesheet&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
and here's a portion of the source rss/xml file:&lt;br /&gt;
&lt;pre class="sourcecode"&gt;
&amp;lt;?xml version="1.0"?&amp;gt;
&amp;lt;rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:yt="http://gdata.youtube.com/schemas/2007"&amp;gt;
   &amp;lt;channel&amp;gt;
      &amp;lt;title&amp;gt;DLG Circulars&amp;lt;/title&amp;gt;
      &amp;lt;description&amp;gt;Circulars from the Department of Local Government&amp;lt;/description&amp;gt;
      &amp;lt;link&amp;gt;http://pipes.yahoo.com/pipes/pipe.info?_id=61096c12df0a4826
a0c39f6b85da0ead&amp;lt;/link&amp;gt;
      &amp;lt;pubDate&amp;gt;Wed, 07 Apr 2010 20:44:50 -0700&amp;lt;/pubDate&amp;gt;
      &amp;lt;generator&amp;gt;http://pipes.yahoo.com/pipes/&amp;lt;/generator&amp;gt;

      &amp;lt;item&amp;gt;
         &amp;lt;title&amp;gt;Walk Safely to School Day (28 kb)&amp;lt;/title&amp;gt;
         &amp;lt;link&amp;gt;http://www.dlg.nsw.gov.au/dlg/dlghome/documents/Circulars/10-07.pdf&amp;lt;/link&amp;gt;
         &amp;lt;description&amp;gt;Circular, Ref : 10-07&amp;lt;/description&amp;gt;
         &amp;lt;guid isPermaLink="false"&amp;gt;http://www.dlg.nsw.gov.au/dlg/dlghome/documents/Circulars/10-07.pdf&amp;lt;/guid&amp;gt;
         &amp;lt;pubDate&amp;gt;Tue, 06 Apr 2010 17:00:00 -0700&amp;lt;/pubDate&amp;gt;
         &amp;lt;media:thumbnail url="http://www.dlg.nsw.gov.au/images/dlglogo.gif"/&amp;gt;
         &amp;lt;category&amp;gt;DLG&amp;lt;/category&amp;gt;
      &amp;lt;/item&amp;gt;
      &amp;lt;item&amp;gt;
         &amp;lt;title&amp;gt;Characteristics Of Candidates And Councillors 2008 (38 kb)&amp;lt;/title&amp;gt;
         &amp;lt;link&amp;gt;http://www.dlg.nsw.gov.au/dlg/dlghome/documents/Circulars/10-06.pdf&amp;lt;/link&amp;gt;
         &amp;lt;description&amp;gt;Circular, Ref : 10-06&amp;lt;/description&amp;gt;
         &amp;lt;guid isPermaLink="false"&amp;gt;http://www.dlg.nsw.gov.au/dlg/dlghome/documents/Circulars/10-06.pdf&amp;lt;/guid&amp;gt;
         &amp;lt;pubDate&amp;gt;Thu, 04 Mar 2010 16:00:00 -0800&amp;lt;/pubDate&amp;gt;
         &amp;lt;media:thumbnail url="http://www.dlg.nsw.gov.au/images/dlglogo.gif"/&amp;gt;
         &amp;lt;category&amp;gt;DLG&amp;lt;/category&amp;gt;
      &amp;lt;/item&amp;gt;
      &amp;lt;item&amp;gt;
         &amp;lt;title&amp;gt;Updated guidelines on the exercise of functions under CA Act 1998 and Companion Animals Frequently Asked Questions (49 kb)&amp;lt;/title&amp;gt;
         &amp;lt;link&amp;gt;http://www.dlg.nsw.gov.au/dlg/dlghome/documents/Circulars/10-05.pdf&amp;lt;/link&amp;gt;
         &amp;lt;description&amp;gt;Circular, Ref : 10-05&amp;lt;/description&amp;gt;
         &amp;lt;guid isPermaLink="false"&amp;gt;http://www.dlg.nsw.gov.au/dlg/dlghome/documents/Circulars/10-05.pdf&amp;lt;/guid&amp;gt;
         &amp;lt;pubDate&amp;gt;Thu, 04 Mar 2010 16:00:00 -0800&amp;lt;/pubDate&amp;gt;
         &amp;lt;media:thumbnail url="http://www.dlg.nsw.gov.au/images/dlglogo.gif"/&amp;gt;
         &amp;lt;category&amp;gt;DLG&amp;lt;/category&amp;gt;
      &amp;lt;/item&amp;gt;

   &amp;lt;/channel&amp;gt;
&amp;lt;/rss&amp;gt;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
what have I done wrong?&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/xml/415260/415260/suggestions-for-why-this-xslt-isnt-working/</guid>
      <pubDate>Wed, 07 Apr 2010 21:19:24 -0700</pubDate>
      <category>XML Development</category>
    </item>
  </channel>
</rss>