title: XPath expression to select all XML child nodes except a specific list?
body: <p>Here's the sample data:</p>
  
  <pre><code>&lt;catalog&gt;
      &lt;cd&gt;
          &lt;title&gt;Empire Burlesque&lt;/title&gt;
          &lt;artist&gt;Bob Dylan&lt;/artist&gt;
          &lt;country&gt;USA&lt;/country&gt;
                  &lt;customField1&gt;Whatever&lt;/customField1&gt;
                  &lt;customField2&gt;Whatever&lt;/customField2&gt;
                  &lt;customField3&gt;Whatever&lt;/customField3&gt;
          &lt;company&gt;Columbia&lt;/company&gt;
          &lt;price&gt;10.90&lt;/price&gt;
          &lt;year&gt;1985&lt;/year&gt;
      &lt;/cd&gt;
      &lt;cd&gt;
          &lt;title&gt;Hide your heart&lt;/title&gt;
          &lt;artist&gt;Bonnie Tyler&lt;/artist&gt;
          &lt;country&gt;UK&lt;/country&gt;
                  &lt;customField1&gt;Whatever&lt;/customField1&gt;
                  &lt;customField2&gt;Whatever&lt;/customField2&gt;
          &lt;company&gt;CBS Records&lt;/company&gt;
          &lt;price&gt;9.90&lt;/price&gt;
          &lt;year&gt;1988&lt;/year&gt;
      &lt;/cd&gt;
      &lt;cd&gt;
          &lt;title&gt;Greatest Hits&lt;/title&gt;
          &lt;artist&gt;Dolly Parton&lt;/artist&gt;
          &lt;country&gt;USA&lt;/country&gt;
                  &lt;customField1&gt;Whatever&lt;/customField1&gt;
          &lt;company&gt;RCA&lt;/company&gt;
          &lt;price&gt;9.90&lt;/price&gt;
          &lt;year&gt;1982&lt;/year&gt;
      &lt;/cd&gt;
  &lt;/catalog&gt;
  </code></pre>
  
  <p>Say I want to select everything except the price and year elements.  I would expect to write something like the below, which obviously doesn't work.  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&gt;
  
  &lt;xsl:template match="/"&gt;
    &lt;html&gt;
    &lt;body&gt;
    &lt;xsl:for-each select="//cd/* except (//cd/price|//cd/year)"&gt;
      Current node: &lt;xsl:value-of select="current()"/&gt;
      &lt;br /&gt;
    &lt;/xsl:for-each&gt;
    &lt;/body&gt;
    &lt;/html&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>Please help me find a way to exclude certain child elements.</p>