title: Hide XML elements in XSL?
body: <p>I'm fairly new to xsl and am trying to find a way to hide, or mute, all but two nodes in an wordpress rss feed's xml, structured like so:</p>
  
  <pre><code>?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;rss version="2.0"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  &gt;
  &lt;channel&gt;
      &lt;title&gt;Title&lt;/title&gt;
      &lt;atom:link href="http://www.alink.com" rel="self" type="application/rss+xml" /&gt;
      &lt;link&gt;http://www.alink.com&lt;/link&gt;
      &lt;description&gt;Just another WordPress site&lt;/description&gt;
      &lt;lastBuildDate&gt;Sun, 21 Apr 2013 22:13:55 +0000&lt;/lastBuildDate&gt;
      &lt;language&gt;en-US&lt;/language&gt;
      &lt;sy:updatePeriod&gt;hourly&lt;/sy:updatePeriod&gt;
      &lt;sy:updateFrequency&gt;1&lt;/sy:updateFrequency&gt;
      &lt;generator&gt;http://wordpress.org/?v=3.5.1&lt;/generator&gt;
  
      &lt;item&gt;
          &lt;title&gt;A Title&lt;/title&gt;
          &lt;link&gt;http://www.alink.com&lt;/link&gt;
          &lt;comments&gt;comments&lt;/comments&gt;
          &lt;pubDate&gt;Sun, 21 Apr 2013 22:13:55 +0000&lt;/pubDate&gt;
          &lt;dc:creator&gt;aUser&lt;/dc:creator&gt;
          &lt;category&gt;&lt;![CDATA[Uncategorized]]&gt;&lt;/category&gt;
          &lt;guid isPermaLink="false"&gt;http://www5.uifoundation.org/news/?p=112&lt;/guid&gt;
          &lt;description&gt;&lt;![CDATA[Post[...]]]&gt;&lt;/description&gt;
          &lt;content:encoded&gt; Posted October 10, 2013 &lt;/content:encoded&gt;
          &lt;wfw:commentRss&gt;http://www.alink.com&lt;/wfw:commentRss&gt;
          &lt;slash:comments&gt;0&lt;/slash:comments&gt;
      &lt;/item&gt;
  </code></pre>
  
  <p>But I want to display only the channel/title and channel/link in my transformation.  I was thinking something along the lines of using an empty template on all the nodes, like this</p>
  
  <pre><code>&lt;xsl:template match="channel/* EXCEPTION channel/item/title | channel/item/link" /&gt;
  </code></pre>
  
  <p>I'm unsure of how to declare the exception though.  If there's a better way of doing this, I'd be open to that too</p>
  
  <p>I really just want the output to be an unordered list of <code>item/title</code>, with the value of <code>item/link</code>, with everything else hidden. An example of the output would be:</p>
  
  <pre><code>&lt;ul&gt;
    &lt;li&gt;
      &lt;a href= "www.aLink.com"&gt;A Title&lt;/a&gt;
    &lt;/li&gt;
  &lt;/ul&gt; 
  </code></pre>